3 ms·
I love that quoted new-line. Thats the exact amount of crazy idiosyncrasy I expect from shell one-liners.
by rocqua 8y ago
I love that quoted new-line. Thats the exact amount of crazy idiosyncrasy I expect from shell one-liners.
- Tepix 8y agoIt's nice, alas it has some problems with apostrophes and dashes. perl -pe 's/[\s\.,]+/\n/g' works better. Nowdays you could also get rid of the extra "tr" to convert to lower case and use the new-ish "-i" option to make uniq ignore case. That wasn't available in 1986, however.
- JdeBP 8y agoYou'll probably enjoy https://unix.stackexchange.com/a/503371/5132 https://unix.stackexchange.com/a/503371/5132 then. (-: Of course this raises the philosophical question of whether a "one-liner" is in fact a one-liner if it has two lines.