Editing text with CLI one-liners
Submitted by Robert Daeley on Wed, 2007-01-17 00:07.
The ever-helpful IBM developerWorks series on Unix techniques has a new article on editing text files using simple one-liners on the command line, using the venerable cat, ed, and sed.
“Save time with text editing one-liners”
Take a quick look at some essential editing one-liners that can save you time and effort. Text-editing operations are normally done interactively, inside a text editor application. Some tasks, however, can be accomplished quickly and easily, right from the UNIX® command line. What’s more, these one-liners can be used in scripts to automate various editing procedures.