Sunday, 24 August 2008

Sysadmin: SORT command

Handy command line utility to sort plaintext file content and output in alphanumeric order.

The "/+1" defines at which character from the beginning of a new line should the utility start ordering from.

/t is the temporary storage location used to processed the data, useful if the data exceeds available memory

/c is the output file location

sort /+1 source.txt /t c:\temp\tempstorage.txt /o c:\temp\sorted.txt

No comments: