P.O. Box 98199
Washington, DC 20090-8199
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 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
Rising Seas: Past, Present, Future
My Beloved Brontosaurus: On the Road with Old Bones, New Science, and Our Favorite Dinosaurs
Cats, Carnivores, and various Mammals