[PLUG] shell scripting question
Matt Alexander
lowbassman at gmail.com
Tue Oct 19 16:00:02 UTC 2004
I'm trying to use awk to print several columns, however, I also want
to run an external script on one of those columns. So, for example:
cat $1 | tr -s ' ' | cut -f1,7,8 -d' ' | awk "{print $1,`foo.pl $1`,$3,$2}"
This, of course, doesn't work. Basically I want to run foo.pl on
awk's $1 and not bash's $1 and then print that value as the second
column.
Any ideas how to do this?
Thanks,
~Matt
--
Get Firefox!
http://www.mozilla.org/products/firefox/
More information about the PLUG
mailing list