News for hackers. Stuff that matters.
Re:Computational survivalist by AlchemistCamp on Thursday October 10, 2019 @06:47AM (#21212933)
> cat webpage.html | grep 'mailto:' | cut -d '"' -f 5 | cut -d '"' -f 1 > emails.txt

This is great! I can't believe I've never run into "cut" before. In similar spots, my workflow would have been filtering the lines with grep and then opening the file in VI to finish the task.

Re:Computational survivalist by pjc50 on Thursday October 10, 2019 @08:20AM (#21213575)
Another alternative would be to do the transformation with sed or awk, or if you require more complex regexes, perl with the "-i" and "-e (single line of code)" options.

Cut has a mirror image program, "paste", but I've not yet hit a use case for it.

Re:Computational survivalist by ulucs on Thursday October 10, 2019 @10:12AM (#21214699)
I used it once for counting n-grams while making a markov chain generator
Re:Computational survivalist by ptah on Thursday October 10, 2019 @06:57AM (#21213001)
yip, that's why learning vi is essential for comuputational survivalism. most unix systems has it