sort
Windows CMD · Text · available in the simulator
What it does
Sorts lines of a file or input.
Syntax
sort [/r] [/+n] [/m kilobytes] [archivo] [/o salida]
Options and parameters
/rreverse order
/+Nsorts by column N
/o FILEsaves output to file
/RReverses the sort order: from Z to A.
sort /r nombres.txt/+nSorts the file according to characters starting at position n.
sort /+5 datos.txt/MAmount of main memory to use, in kilobytes.
/LUses the specified locale.
/RECMaximum record length, defaults to 4096 characters.
/OWrites the output to the specified file.
sort nombres.txt /o ordenado.txt
Usage examples
sort archivo.txtsort /r archivo.txtsort /+5 archivo.txtsort nombres.txtsort /r numeros.txtsort /r nombres.txtsort /+5 datos.txtsort nombres.txt /o ordenado.txt