3 ms·
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 refer
by moocowduckquack 13y ago
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'