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 

file help

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests
View previous topic :: View next topic  
Author Message
ap
Halfop


Joined: 09 Jun 2006
Posts: 44

PostPosted: Sun Jul 16, 2006 2:59 pm    Post subject: file help Reply with quote

Hi,

I have a small text file like
global #name1 you're present in a bad #name1.
local #name2 you're in the bad channel #name2, leave this chan now.
global #name3 you're in a spamming chan #name3, part it now.

and so on

i know how to read the file but i need to display the #name after the global or local only on each line and ignore the rest including global/local.

thanks in advance
Back to top
View user's profile Send private message
rosc2112
Revered One


Joined: 19 Feb 2006
Posts: 1454
Location: Northeast Pennsylvania

PostPosted: Sun Jul 16, 2006 4:30 pm    Post subject: Reply with quote

There's quite a few "bad channel" scripts in the archives (www.egghelp.org/tcl.htm)

Personally, I like mc_badchan script, it does exactly what you've posted you're looking for:
http://www.egghelp.org/cgi-bin/tcl_archive.tcl?mode=download&id=32
but I've also modified it to suit my own needs.
Back to top
View user's profile Send private message
ap
Halfop


Joined: 09 Jun 2006
Posts: 44

PostPosted: Sun Jul 16, 2006 4:41 pm    Post subject: Reply with quote

thanks i don't need the script, i am working on the file operations..

also i was wondering if i have a text file and i like to read from the 2nd line? ignore first line
thanks
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests 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