7th November 2010
|
|
Rc.conf Instructor
|
|
Join Date: May 2008
Location: Kosovo, Serbia
Posts: 1,102
|
|
Quote:
Originally Posted by rocket357
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
|