All Downloads are FREE. Search and download functionalities are using the official Maven repository.

command-definition.sort.html Maven / Gradle / Ivy

There is a newer version: 0.6
Show newest version


The sort utility performs one of the following functions:

  1. Sort lines of all the named files together and write the result to the specified output.
  2. Merge lines of all the named (presorted) files together and write the result to the specified output.
  3. Check that a single input file is correctly presorted.

Comparisons are based on one or more sort keys/fields extracted from each line of input. If no sort keys/fields are specified, comparisons are based on the entire line up to, but not including, the terminating <newline>. All comparisons are performed using the collating sequence of the current locale.

Sorting is stable, that is, the ordering of input lines is preserved if they are considered equal according to the current comparison criteria (if two lines originate from different input files, the index of the file in the input arguments list defines the ordering of the lines).





© 2015 - 2024 Weber Informatics LLC | Privacy Policy