lsort.exe (stored in lsort.zip - 25,309 bytes) a "quicksort" for ANSI files up to 1GB with any line lengths.
Usage is lsort {flags} {infile} {outfile} or [some command] | lsort {flags} {flags} are -b, -g, -i, -n, -r, -u, +#, -o [outfile] where -b means ignore leading whitespace -g means start compare at first char after greater-than (>) -i means ignore case -n means sort numerically (implies -b) -r means reverse sort (descending) -u means remove duplicate lines +# means start compare at character # (applied before -b or -g) -o [outfile] write result to [outfile] useful when input is stdin & output isn't to be stdout {infile} is overwritten unless -o or {outfile} given if no {infile}, input is stdin, output is stdout {outfile} is optional; same as (but overrides) -o no -o & no {outfile} means outfile same as infile and infile saved as *.BAK; but when input is stdin, output is stdout (unless -o given)
Back to Leigh's Home Page | Site Map | Site Search |