git clone https://github.com/letcsv/bash
or just tag function:
curl https://bash.letcsv.com/tag.sh
get title tag from file: index.html
cat index.html | ./tag.sh title
OUTPUT:
Softreck | Leadership Through Software Development
w ramach projektu apidsl.com
- zamiast xpath - ładowanie zalezności przez skrypt github
- letPath - przygotować https://github.com/letcsv/bash
./test.sh
./test.sh headerToLinesInFile.sh
./test.sh headerFromFileToLinesInFile.sh
Start tests:
./test.sh > test1.txt
Start tests:
./test.sh > test2.txt
Compare with valid test:
diff text1.txt test2.txt
Check the result:
cat test2.txt
Output:
# TEST
FILE: empty_content.sh
./tag.sh title
OUTPUT:
stdin HTML Content is empty (cat index.html | ./tag.sh title)
# TEST
FILE: empty_tag.sh
cat index.html | ./tag.sh
OUTPUT:
HTML TAG is empty, (e.g.: title, body, header)