News for hackers. Stuff that matters.
Re:Extracting data from Wikipedia using curl, grep, cut and ... by orfix on Monday August 15, 2016 @05:50PM (#12293760)
My 2 cents: the cut/grep lines could be replaced by a sed/awk one-liner such as:

sed -n 's/.flagIOCmedalist|\[\[\([^]|]\).*/\1/p'

Re:Extracting data from Wikipedia using curl, grep, cut and ... by oxymoron on Monday August 15, 2016 @06:43PM (#12294072)
Agreed. I was a long time abuser of cut, but has moved to relying on sed instead. I find that it's generally a lot more robust if you think through your expressions. For certain cases awk will also do the job. Perl oneliners do seem convenient but that has never been my cup of tea.