Certainly a nice way to follow HN, the only advantage with the website, it to have gray links on already visited links. That's mainly why I don't use it anymore.
blue_highlight=`echo "\033[0;38;5;68m"`
brown_highlight=`echo "\033[0;1;38;5;202m"`
. . .
. . . (end of script)
echo "\033[0m"I'm running plain old terminal on OS X.
(oh, and not to be picky, but that should be "your", not "you're")
[admin@gold admin]# hackernews
sed: invalid option -- E
[admin@gold admin]# sed --version
GNU sed version 4.1.5 echo "\033[0m"
Also, I believe Debian's /bin/sh is "dash" whereas it is "bash" on most other systems. You could change your copy of the script's header to use "/bin/bash" instead of "sh" (assuming that bash is installed too), which is easier than fixing equal-signs and such.As far as the original code is concerned, using "perl" may be slightly more portable than "sed -E".
Note that in order to work on Mac OS X, the word "wget" should change to "curl" in the script. (Otherwise it works exactly as-is.)
You have committed an egregious atrocity: you parse XML with a regex.
Please read this classic post: http://goo.gl/wPtKX
Thank you, Internet