X-Git-Url: https://git.josue.xyz/?p=oneliner%2F.git;a=blobdiff_plain;f=colorexample%2Ftest.sh;fp=colorexample%2Ftest.sh;h=70a1a3498f9061bef3de7b64b643ebc98c870cba;hp=0000000000000000000000000000000000000000;hb=d962dc392b6df48c975b3594ed8c96357495bd0f;hpb=d4e116c2811f38a4d25a31e7079ac71d15fc4e42 diff --git a/colorexample/test.sh b/colorexample/test.sh new file mode 100755 index 0000000..70a1a34 --- /dev/null +++ b/colorexample/test.sh @@ -0,0 +1,25 @@ +#!/bin/bash +#echo -e 'HTTP/1.1 200 OK\r\n' + +#echo "************PRINT SOME TEXT***************\n" + +echo "Hello World!!!" > hola.txt + +#echo "\n" + +echo "Resources:" >> hola.txt + +grc --colour=on vmstat -S M >> hola.txt + +#echo "\n" + +echo "Addresses:" >> hola.txt + +echo "$(grc --colour=on ip addr)" >> hola.txt + +#echo "\n" + +grc --colour=on ping -c 1 google.com >> hola.txt +cat hola.txt | ./ansi2html.sh > hola.html +echo "$(cat hola.html)" +