Useful sed scripts & patterns for your daily usage.

[EDIT] It reached Number 1 on Hacker News. This is mind-blowing.

Hello you smart techie!
Today I have something useful for you – some sed scripts! YAY.

Sed one liners can look like alien language sometimes. I hope these examples will make your life easier while using sed.

Please let me know what you think in the comments!

Enjoy and have fun using sed! 🙂

https://github.com/adrianscheff/useful-sed

One Reply to “Useful sed scripts & patterns for your daily usage.”

  1. do replacement from line 5 to end of file
    s ‘1,$ s/foo/bar/’ file.txt

    Seems like 5 should appear somewhere in that line.

Leave a Reply

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