New example that can get you colors on the web
[oneliner/.git] / colorexample / test.sh
diff --git a/colorexample/test.sh b/colorexample/test.sh
new file mode 100755 (executable)
index 0000000..70a1a34
--- /dev/null
@@ -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)"
+