The Archives

  • 17.Jun.08
    comm, common lines in two files shell | pfortuny | (0)
    Given two ordered files, like $ cat foo abbreviation carnivore meal topology and $ cat bar aristide meal nap scout topology zero comm prints, in succession and in a three-column format, the lines corresponding exclusively to the first file (first column), exclusively to the second file (second column) and to both of them (third column). Thus, $ comm foo bar abbreviation aristide carnivore meal nap scout ...