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


No comments:

Post a Comment

Datanami, Woe be me