Skip to content

letpath/bash

Repository files navigation

About

How to start

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

or just tag function:

curl https://bash.letpath.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

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)

# TEST
FILE: title_tag.sh
cat index.html | ./tag.sh title
OUTPUT:
Softreck | Leadership Through Software Development

Releases

No releases published

Packages

No packages published

Languages