Skip to content

Latest commit

 

History

History
82 lines (53 loc) · 1.08 KB

README.md

File metadata and controls

82 lines (53 loc) · 1.08 KB

About

How to start

git clone https://github.com/letcsv/bash

or just tag function:

curl https://bash.letcsv.com/tag.sh

START

get title tag from file: index.html

cat index.html | ./tag.sh title

OUTPUT:

Softreck | Leadership Through Software Development

TODO

w ramach projektu apidsl.com

TEST

./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)