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
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
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
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
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/