Skip to content

Commit 14407aa

Browse files
authored
Create watch-nzx
1 parent a135b7b commit 14407aa

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Terminal/watch-nzx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)