View Single Post
  #7   (View Single Post)  
Old 7th November 2010
Oko's Avatar
Oko Oko is offline
Rc.conf Instructor
 
Join Date: May 2008
Location: Kosovo, Serbia
Posts: 1,102
Default

Quote:
Originally Posted by rocket357 View Post
sed is my choice for stuff like this:

Code:
rocket357@SkyNet:~$ cat test.txt
1
3
4

rocket357@SkyNet:~$ sed 2's/\(.*\)/\1 <additional text>/' test.txt
1
3 <additional text>
4
but that's just me. I like sed and use it perhaps too much.
One more vote for sed
Reply With Quote