… or I’ll replace you with a sed(1) one-liner

Ever had a task for which sed(1) seemed like the obvious tool but couldn’t figure out the correct syntax to use and instead ended up firing up a Perl interpreter? Do not dispair, help is near! Eric Pement compiled a nice set of hints on using sed(1) in his sed1line.txt tutorial.

I discovered this tutorial long time ago, but seeing how often I find myself browsing it to find the optimal syntax, I thought I’d share it with you :)

Leave a Reply

Your email address will not be published. Required fields are marked *