Arrange text file lines in specified order with support for numeric, month-name, and reverse sorting. Handles large files efficiently.
sort-tool [options] [file...]
-n: Numeric sort-r: Reverse order-u: Unique lines (remove duplicates)-k N: Sort by column N-t SEP: Use SEP as field separator# Alphabetical sort
sort-tool names.txt
# Numeric sort
sort-tool -n numbers.txt
# Sort by column 2
sort-tool -k 2 -t ',' data.csv
共 1 个版本