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.
Thread beginning with comment 349887
To view parent comment, click here.
To read all comments associated with this story, please click here.
Member since:

They use regular expressions, something I consider should be avoided at all costs on account of their impenetrable syntax.

You obviously subscribe to the school of thought that says someone who uses regular expressions to solve a problem now has two problems. ;)

True to a degree - they tend to be overused, or made overly complicated by people who think that because they can read it, so will the next person who comes along. But they're also an extremely powerful tool, for which there really isn't any practical alternative - e.g if you want to validate that a string matches a pattern, you can use a simple regex to do it, or you can write your own parser. And writing your own parser is almost never the right answer.

Reply Parent Score: 4