egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Replacing a line

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    egghelp.org community Forum Index -> Archive
View previous topic :: View next topic  
Author Message
BlackJack
Guest





PostPosted: Wed Feb 11, 2004 10:40 am    Post subject: Replacing a line Reply with quote

Hey Guys,
i have a txt file with more than 1 line, in each line are more than 1 word.

now, i want to delete the whole line, if there is a specified word.

for example:

line1 - peter is a nice guy
line2 - peter is gay
line3 - peter is tall

now i want to delete the line, where "gay" is in and post the others again in the file like this:

line1 - peter is a nice guy
line3 - peter is tall

Can somebody tell me how to do this? I tryed it with lsearch and lreplace but i'm not very skilled and hope you will help me. THANKS!
Back to top
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    egghelp.org community Forum Index -> Archive All times are GMT - 4 Hours
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


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber