[LUAU] not using SED to extract song, artist, and album from my iTunes Music List Export

2006-09-28 Thread Vince Hoang
On Tue, Sep 26, 2006 at 11:14:50PM -1000, R. Scott Belford wrote: Jim Thompson wrote: % awk -F \t '{printf(\%s\ %s %s\n, $1, $2, $3)}' itunes-export-file I get this output in my terminal Name Artist Composer Jim's example prints fields 1, 2, and 3, but you want fields 1, 2, and 4. I

Re: [LUAU] not using SED to extract song, artist, and album from my iTunes Music List Export

2006-09-28 Thread Jim Thompson
On Sep 27, 2006, at 11:54 PM, Vince Hoang wrote: On Tue, Sep 26, 2006 at 11:14:50PM -1000, R. Scott Belford wrote: Jim Thompson wrote: % awk -F \t '{printf(\%s\ %s %s\n, $1, $2, $3)}' itunes- export-file I get this output in my terminal Name Artist Composer Jim's example prints

Re: [LUAU] not using SED to extract song, artist, and album from my iTunes Music List Export

2006-09-28 Thread R. Scott Belford
Jim Thompson wrote: Oops, Vince is right. Okay, so I paste this into my terminal window cat Music.txt | awk '{FS=\t;RS=\r;printf(\%s\ %s %s\n, $1, $2, $4)}' /tmp/scott /tmp/scott.out and I get this on my osx machine awk: i/o error occurred on /dev/stdin source line number 1 and this

Re: [LUAU] not using SED to extract song, artist, and album from my iTunes Music List Export

2006-09-28 Thread Jim Thompson
On Sep 28, 2006, at 12:15 AM, R. Scott Belford wrote: Jim Thompson wrote: Oops, Vince is right. Okay, so I paste this into my terminal window cat Music.txt | awk '{FS=\t;RS=\r;printf(\%s\ %s %s\n, $1, $2, $4)}' /tmp/scott /tmp/scott.out and I get this on my osx machine awk: i/o

Re: [LUAU] not using SED to extract song, artist, and album from my iTunes Music List Export

2006-09-28 Thread Tim Newsham
Since XML was brought up, does anyone want to try some programming golf with their favorite language and XML library? Eww.. why? -Vince Tim Newsham http://www.thenewsh.com/~newsham/