Linked by pkrumins on Thu 19th Feb 2009 12:17 UTC
General Development 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.
Permalink for comment 349799
To read all comments associated with this story, please click here.
Member since:

Depends on the load you have to lift. If I wanted to perform a quick bucket-sort, then I’d use PHP, VBScript or any other non-compact scripting language. But if I had to make a syntax processor (like I have: ), then there’s no way I’d do it without regex. I’d have to practically reimplement a hard-coded regex engine in the process of handling the byte-by-byte matching for all the use-cases.

Sure the likes of sed and awk are hard to use, but there’s wizards out there who can, and those of us who can’t -- it’s not ours to say that one tool is better than the other, when in the right hands.

Reminds me of this T-Shirt - - "Go away or I will replace you with a very small shell script."

Edited 2009-02-19 13:08 UTC

Reply Parent Score: 1