News for hackers. Stuff that matters.
Re:Hacker News in the Terminal by moocowduckquack on Friday August 02, 2013 @05:39PM (#6149849)
It should be possible to do this in a line of bash, this is my current start point -

  curl https://news.ycombinator.com | sed 's|<[^>]*>||g'
edit - for reference, this is being done in an osx 10.7.5 terminal, so ymmv

getting somewhereish, I only have a slight understanding of regex to be honest :)

  curl https://news.ycombinator.com | sed 's|<[^>]*>|-|g' | sed -e 's/-------/\'$'\n/g'
...

  curl https://news.ycombinator.com | sed 's|<[^>]*>|-|g' | sed 's|------------|-|g' | sed -e 's/-------/\'$'\n/g'

There are no comments on this comment yet.