30 ms·
The universe of Unix filters never ceases to turn up things I haven't seen before. Other examples for those inclined: tac, sponge, pv, join, paste.
by jzwinck 11y ago
The universe of Unix filters never ceases to turn up things I haven't seen before. Other examples for those inclined: tac, sponge, pv, join, paste.
- ryan-c 11y agoSome others I like: rev, vipe, comm, bfr, xxd
- lappa 11y agoDo you know of a good resource listing all of these?
- dap 11y ago`ls /usr/bin/?? /usr/bin/???` can be interesting to skim through.
- kevinoid 11y agoThe standardized ones are described in the Shell & Utilities section of POSIX:2008/SUSv4 online at http://pubs.opengroup.org/onlinepubs/9699919799/ http://pubs.opengroup.org/onlinepubs/9699919799/
- jph 11y agoYes, Num command has a quick list: http://www.numcommand.com/doc/helpers.html http://www.numcommand.com/doc/helpers.html
- cfcef 11y agoIn the same vein of 'improvements over things everyone assumes you have to do with the more famous tool', we could say grep '^string' : look :: sort -R : shuf
- nhaehnle 11y agoThanks to @climagic on Twitter, I recently learned that sort -R and shuf are not in fact the same thing. (sort -R doesn't actually shuffle...)
- cfcef 11y agoMy point there was that besides being a true shuffle, 'shuf' also has an algorithmic advantage when you only need a few lines (similar to how lookup has an advantage when you only need a few).
- ryan-c 11y agolook does a binary search and only works on sorted files, while grep '^string' works on any text file but would be slower.