Thread
:
How to append text to second line of a file
View Single Post
#
8
(View Single Post)
7th November 2010
rocket357
Real Name: Jonathon
Wannabe OpenBSD porter
Join Date: Jun 2010
Location: 127.0.0.1
Posts: 429
Quote:
Originally Posted by
drl
sed '2s/$/ 2/' $FILE
Ahh yes, much more efficient (and easier to type) than matching the entire line. Thanks for pointing this out.
rocket357
View Public Profile
Visit rocket357's homepage!
Find all posts by rocket357