First page Back Continue Last page Overview

 

sort

 
  • Sorts text to stdout - original file unchanged

    • $ sort [options] file(s)
  • Common options

    • -r Reverses sort to sort descending
    • -n Numeric sort
    • -f ignore (fold) case of characters in strings
    • -u unique (remove duplicate lines in output)
    • -t 'x' - use x as field separator
    • -k POS1 – sort from field POS1
    • -k POS1,POS2 – sort using fields POS1 ending at POS2