View Single Post
  #8   (View Single Post)  
Old 7th November 2010
rocket357's Avatar
rocket357 rocket357 is offline
Real Name: Jonathon
Wannabe OpenBSD porter
 
Join Date: Jun 2010
Location: 127.0.0.1
Posts: 429
Default

Quote:
Originally Posted by drl View Post
sed '2s/$/ 2/' $FILE
Ahh yes, much more efficient (and easier to type) than matching the entire line. Thanks for pointing this out.
Reply With Quote