Is he doing this from memory or is he looking it up as he goes along?
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?).
er, “test1″ and “test2″ in my line correspond to “stuff.csv” and “nostuff.csv” respectively.
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.
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.
Notify me of follow-up comments by email.
Notify me of new posts by email.
Notify me of followup comments via E-Mail.
Click here to visit my page for the novel Sungudogo, which is now available for the Kindle
I and the BIRD … not just a Web Carnival any more