View previous topic :: View next topic |
Author |
Message |
supradrvr n00b
Joined: 25 Feb 2006 Posts: 19 Location: Kansas
|
Posted: Thu Apr 13, 2006 2:46 am Post subject: console command help - remove line of text from file |
|
|
I am needing to know what command will remove a line of text from a file. I know the command ls line of text >> filename.txt will add to the file but what command will remove the line? |
|
Back to top |
|
|
yabbadabbadont Advocate
Joined: 14 Mar 2003 Posts: 4791 Location: 2 exits past crazy
|
Posted: Thu Apr 13, 2006 3:53 am Post subject: |
|
|
It will probably take a combination of using 'cat' and 'sed' to do what you want. You will need to study the sed man page in particular. _________________
Bones McCracker wrote: | On the other hand, regex is popular with the ladies. |
|
|
Back to top |
|
|
supradrvr n00b
Joined: 25 Feb 2006 Posts: 19 Location: Kansas
|
Posted: Thu Apr 13, 2006 3:57 am Post subject: |
|
|
thanks for the reply. I will look into it and post my findings. |
|
Back to top |
|
|
|