| View previous topic :: View next topic |
| Author |
Message |
ap Halfop
Joined: 09 Jun 2006 Posts: 44
|
Posted: Sun Jul 16, 2006 2:59 pm Post subject: file help |
|
|
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 |
|
 |
rosc2112 Revered One

Joined: 19 Feb 2006 Posts: 1454 Location: Northeast Pennsylvania
|
Posted: Sun Jul 16, 2006 4:30 pm Post subject: |
|
|
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 |
|
 |
ap Halfop
Joined: 09 Jun 2006 Posts: 44
|
Posted: Sun Jul 16, 2006 4:41 pm Post subject: |
|
|
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 |
|
 |
|