Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
console command help - remove line of text from file
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
supradrvr
n00b
n00b


Joined: 25 Feb 2006
Posts: 19
Location: Kansas

PostPosted: Thu Apr 13, 2006 2:46 am    Post subject: console command help - remove line of text from file Reply with quote

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
View user's profile Send private message
yabbadabbadont
Advocate
Advocate


Joined: 14 Mar 2003
Posts: 4791
Location: 2 exits past crazy

PostPosted: Thu Apr 13, 2006 3:53 am    Post subject: Reply with quote

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
View user's profile Send private message
supradrvr
n00b
n00b


Joined: 25 Feb 2006
Posts: 19
Location: Kansas

PostPosted: Thu Apr 13, 2006 3:57 am    Post subject: Reply with quote

thanks for the reply. I will look into it and post my findings.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum