We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a135b7b commit 14407aaCopy full SHA for 14407aa
Terminal/watch-nzx
@@ -0,0 +1,8 @@
1
+#!/bin/bash
2
+
3
+while [ 1 ]
4
+do
5
+ wget 'http://www.nzx.com' --user-agent="Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0" -q -S -O - 2>/dev/null | xmllint --html -xpath './/ul[@id="featured-indices"]' - 2>/dev/null | html2text | cut -d'/' -f2 | sed "s,+.*,$(tput setaf 2)&$(tput sgr0)," | sed "s,-.*,$(tput setaf 1)&$(tput sgr0),"
6
+ sleep 360
7
+ clear
8
+done
0 commit comments