Thursday, September 14, 2006

GNU Coreutils/other useful UNIXy stuff

There are a lot of useful things in the GNU coreutils that are useful but many people (me) had no idea that they even exist... here are a few:
  • sort sort the contents of a file
    • -r reverse
    • -f ignore case
    • -n numeric
    • -b ignore leading blanks
    • -c check if sorted (no printout = sorted)
  • uniq remove duplicate lines from a sorted file
    • -c sort and count number of occurances
    • -i ignore case
Of course, if you ever want any information about the coreutils: info coreutils

No comments: