mIRC Homepage
Posted By: quiglag sort output from word.txt - 24/08/05 01:57 AM
So i have a word.txt file like this :
--------word.txt-----
a horse
b cow
c bird
b dog
c cat
a rabbit
----------------
and i want to output them with them in alphabetical order by the letter before main word. Ex horse, rabbit, cow, dog, bird, cat

Is this possable? Can you give me a quick example script of how to do this.

Thanks
Posted By: DaveC Re: sort output from word.txt - 24/08/05 05:54 AM
/help /filter

Since I dont know where you want to output to!

;sorts the word.txt file itself
/filter -ffct 1 13 word.txt word.txt *

-- OR --

;Assuming you want to output to custom window @output
//filter -fwt 1 13 word.txt @output *
Posted By: qwerty Re: sort output from word.txt - 25/08/05 09:35 AM
/filter -ffca word.txt word.txt also sorts the default way, if you don't specify a sorting alias. A bit easier to remember, if you just want an alphanumeric sorting in ascending order.
Posted By: DaveC Re: sort output from word.txt - 25/08/05 12:48 PM
yeah, i just thought it might be nice to show the -t since it does lend alot more sorting power to filter, even if the one i showed was pretty well pointless :-)
© mIRC Discussion Forums