24 comments

[ 81.6 ms ] story [ 1316 ms ] thread
Thanks for this! I really like these kinds of summaries, because while I love grep and cut and wc and perl, there are commands in here I really haven't heard of.

Plus I enjoy stringing together one-off filters longer than my arm.

(comment deleted)
So sad that the writer lets himself down in the first line.
What are you referring to?
Possibly to the use of "A basic tenant" when the writer really meant "A basic tenet".
He must be referring to the use of "tenant" when "tenet" was meant.
join was new to me. I like it....

Always happy to learn a new command.

I like how it's laid out from the most specific tools that are easy to understand and eventually leads to the pocketknives of sed and awk that beginners might not need until they've exhausted the potential of the previous commands.
Thanks for this, had never heard of csplit. Too bad the OSX version sucks.
The Unix Programming Environment by Kernighan and Pike and The AWK Programming Language are still the best books one can read about Unix text manipulation, and about Unix, period. (Part of the point is that in Unix text is supposed to be the universal language).
Good post. How can I tell if a tool supports UTF-8 (or some other encoding) or not?
If you like this, then check out Unix Power Tools. It's full of exactly this kind of stuff, with broader and deeper coverage. I highly recommend it -- I consider it one of the top ten or so books for a new programmer to spend some time with.