4 ms·
My 2 cents: the cut/grep lines could be replaced by a sed/awk one-liner such as: sed -n 's/.flagIOCmedalist|\[\[\([^]|]\).*/\1/p'
by orfix 10y ago
My 2 cents: the cut/grep lines could be replaced by a sed/awk one-liner such as:
sed -n 's/.flagIOCmedalist|\[\[\([^]|]\).*/\1/p'
- oxymoron 10y agoAgreed. 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.