mIRC Home    About    Download    Register    News    Help

Print Thread
#12829 24/02/03 12:21 PM
D
druiddk
druiddk
D
//echo -s Wildcard dupe: $read(test\database.txt, w, *The.Sentinel*)

In the file there are 3 matching lines - however the echo only outputs the first match... Cant i some how make it output ALL matches?

Perhaps output the first 10/15/25 matches or something like that?

#12830 24/02/03 12:40 PM
Joined: Dec 2002
Posts: 1,893
O
Hoopy frood
Offline
Hoopy frood
O
Joined: Dec 2002
Posts: 1,893
Code:

while $read(test\database.txt, w, *The.Sentinel*, $calc($readn +1)) {
  echo -s Wildcard dupe: $ifmatch
}

See /help $read for information on the 4th parameter.

You can also use the /filter command, to filter matching lines into a file or a window. Example:
Code:

/filter -ff test\database.txt output.txt *The.Sentinel*


(this one copies matching lines into output.txt)

See /help /filter for more info.

#12831 24/02/03 03:02 PM
D
druiddk
druiddk
D
Just what I was looking for!
Thanks mate laugh


Link Copied to Clipboard