I'm trying to understand how to use the -t switch at the filter command.
it says:
The -t switch sorts the output based on [c s], column C using character S as the columns separator
What exactly is the C and what exactly is the S (How to I choose them?)
For example, lets say that I have the 2 following lines:
4 saragani $chr(9) 4 hello
7 Apple $chr(9) 7 Memo
What do you need to write in order to sort using the first words (saragani and apple. The sorting is alphabeticly)?
Ands what do I need to do in order to sort using the second words (hello and memo)?
Thanks.
Basically it's which "word" should you sort by and what character seperates words. To sort the text you have you'd use
-t 2 32
sort based on the second "word" and words are seperated by character 32 (spaces). Now word here is different than what you said. When you said "first word" as far as mIRC is concerned you are talking about the second word. because the 4 is the first word since it has a space after it. If you wanted to sort by the third word instead of the second, just change the 2 to a 3.
Yeah, I know that what I called first word is actualy the second.
Thank you , that explains it all.
The mIRC help doesn't says that the C is actualy the token that I want to sort by, and S is the chr if the seperator.
Thank you for clearing it.