Is he doing this from memory or is he looking it up as he goes along?


  1. #1 lylebot
    May 11, 2009

    I did “sort -t, -k3 test1 | join -v 1 -v 2 -t, -j 3 test2 -” and got essentially the same result (well, fields 1 and 3 were swapped, but big deal, hey?).

  2. #2 lylebot
    May 11, 2009

    er, “test1” and “test2” in my line correspond to “stuff.csv” and “nostuff.csv” respectively.

  3. #3 Jason Thibeault
    May 12, 2009

    I have been using PHP to do all my CSV parsing all this time. I should have known there’d be commands that could do it as easily in a bash script. Thanks Greg (and Linux Journal), I learned something new and will probably apply it sometime today. If not for work, then for fun.

  4. #4 Glen
    May 12, 2009

    Probably from memory.

    After using unix/sunos/solaris/aix/hpux/linux for almost two decades, I’ve memorized most of the options to the commonly used commands. I’m sure the author of the video has too.