| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | a better sort dos 6.22 anyone? |
Hello all!
I had such good luck locating something to work around the
find command with ms dos here I thought I'd try another.
SOrt as bundled with dos has some bugaboos at least for the
way I'd like to use it.
Example: rUnning fully automated I want to sort a text file which is a
list. For our example let's say a list of echoes which have seen local
postings over a period of time. LIst
is derived from using our echo log file which is appended to a file which
is then deleted after this report is run.
So, for our example, we've used TImo's echon to stuff the
echo tag into the output file, and find to output on the
same line the number of occurrences of that string.
Example:
echon batpower >> outfile.txt
type input.txt | find "batpower" /i /c >> outfile.txt
OF course, after we finish this step we're going to want the numeric values
at left margin and the echotag elsewhere.
HORst's listmod does this quite nicely. so we have ...
type outfile.txt | listmod $2 $1 >> output.txt
At this point it would be real nice if sort recognized the
we're sorting numbers. For our example the output still
isn't properly sorted lowest to highest, or highest to
lowest for that matter. IN erverse order we might have
97 string1
90 string2
8 string3
74 string4
...
Anybody know of any third party prg which will actually sort intelligently?
WIth anything where I've had ability to intervene in the
process I've just padded places with zeroes, but it would
sure be nice not to need to. Especially for the purposes
I'd really like to utilize a sort. Ideas anyone?
Regards,
Richard
--- timEd 1.10.y2k+
* Origin: Radio REscue net operations BBS (1:116/901)SEEN-BY: 10/1 3 34/999 120/228 123/500 128/2 140/1 222/2 226/0 249/303 250/306 SEEN-BY: 261/20 38 100 1381 1404 1406 1410 1418 266/1413 280/1027 320/119 SEEN-BY: 393/68 396/45 633/104 260 267 285 640/954 690/682 734 712/0 313 848 SEEN-BY: 800/432 801/161 189 2222/700 2320/100 105 200 2905/0 @PATH: 116/901 3634/12 123/500 261/38 633/260 712/848 633/267 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.