This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

file help

Requests for complete scripts or modifications/fixes for scripts you didn't write. Response not guaranteed, and no thread bumping!
Post Reply
a
ap
Halfop
Posts: 44
Joined: Fri Jun 09, 2006 12:20 am

file help

Post by ap »

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
User avatar
rosc2112
Revered One
Posts: 1454
Joined: Sun Feb 19, 2006 8:36 pm
Location: Northeast Pennsylvania

Post by rosc2112 »

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_arch ... load&id=32
but I've also modified it to suit my own needs.
a
ap
Halfop
Posts: 44
Joined: Fri Jun 09, 2006 12:20 am

Post by ap »

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
Post Reply