[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! 🙂
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.