Awk and Sed One-Liners Explained

If you have ever been interested in awk and sed Unix utilities, then you probably know about the awk1line.txt and sed1line.txt files that are floating around the Internet. Each file contains around 80 idiomatic sed and awk one-liners for performing various text modification tasks.

Making my way through them was not easy and I decided to write two articles explaining every one-liner in these files. It took me several months to finish them, but now I am proud that I did it.

Here is the Awk One-Liners Explained article: Part One, Part Two, Part Three, Part Four (bonus).

And here is the Sed One-Liners Explained article: Part One, Part Two, Part Three.

My future plans are to publish a free ebook with all the one-liners. If you are interested, please visit my site after a few months. I’ll publish it there.

32 Comments

  1. Michael 2009-02-19 12:42 pm EST
    • Kroc 2009-02-19 1:06 pm EST
      • massysett 2009-02-19 2:18 pm EST
        • AtariFan 2009-02-19 11:11 pm EST
    • spiderman 2009-02-19 2:18 pm EST
      • vivainio 2009-02-19 7:06 pm EST
        • RandomGuy 2009-02-20 6:50 pm EST
          • pkrumins 2009-02-20 11:26 pm EST
          • vivainio 2009-02-21 8:52 am EST
    • JMcCarthy 2009-02-19 2:58 pm EST
      • pkrumins 2009-02-19 3:08 pm EST
      • Googol 2009-02-20 12:25 am EST
    • appel 2009-02-19 5:02 pm EST
      • poundsmack 2009-02-19 6:17 pm EST
      • Michael 2009-02-20 12:14 am EST
        • abraxas 2009-02-20 2:48 am EST
        • vivainio 2009-02-20 5:56 pm EST
        • yiyus 2009-02-22 9:21 pm EST
    • whartung 2009-02-19 5:49 pm EST
    • Delgarde 2009-02-19 8:55 pm EST
  2. dbolgheroni 2009-02-19 1:19 pm EST
    • pkrumins 2009-02-19 1:25 pm EST
    • abraxas 2009-02-21 6:35 pm EST
  3. timefortea 2009-02-19 2:28 pm EST
  4. fretinator 2009-02-19 4:54 pm EST
  5. maaxx 2009-02-19 5:02 pm EST
  6. jwwf 2009-02-19 6:08 pm EST
    • Doc Pain 2009-02-19 8:23 pm EST
  7. tupp 2009-02-19 6:14 pm EST
  8. abraxas 2009-02-20 2:25 am EST
  9. alcibiades 2009-02-21 5:47 pm EST