Showing posts with label sed. Show all posts
Showing posts with label sed. Show all posts

Friday, 15 July 2011

How add new line to start and end of a file, SED / Linux Goodness

saw this usage of sed in the forums posted by ghostdog74

sed '1 i this is first line' file


sed '$ a this is last line' file


link

Datanami, Woe be me