Sed And Awk

Network World: Unix How To: Sed & Awk — Still friendly after all these years

Even after decades of using Unix on thousands of systems, I find that it’s still fun to discover various convolutions of sed and awk commands to perform command line wizardry. There’s a lot more to ...

Unix How To: Sed & Awk — Still friendly after all these years

Sed And Awk 3

Ars Technica: Linux/BSD command line wizardry: Learn to think in sed, awk, and grep

Sed And Awk 4

Linux/BSD command line wizardry: Learn to think in sed, awk, and grep

The Linux expand and unexpand commands can turn tabs into spaces and spaces into tabs, and the sed and awk commands can help. The Linux expand and unexpand commands sound like they can make files ...

Ars Technica: Linux/BSD Command Line 101: Using awk, sed, and grep in the Terminal

Linux/BSD Command Line 101: Using awk, sed, and grep in the Terminal

Sed And Awk 8

How do I edit a file in a single sed command? Currently, I have to manually stream the edited content into a new file and then rename the new file to the original file name. I tried sed -i, but my

Sed And Awk 9

In your example sed 's/foo/bar/' and sed -e 's/foo/bar/' are equivalent. In both cases s/foo/bar/ is the script that is executed by sed. The second option is more explicit, but that is probably not the reason that you often see -e used. The reason for that is that -e makes it possible to use more than one script with the same invocation of sed.

Sed And Awk 10