Oct 31, 2001 #1 jping45 Technical User Aug 22, 2001 49 US I have command output that has 10 fields in it. I want to pass $1, $3, $4, $5 to some formatting commands and $7 to a temp file. Any suggestions?
I have command output that has 10 fields in it. I want to pass $1, $3, $4, $5 to some formatting commands and $7 to a temp file. Any suggestions?
Oct 31, 2001 #2 CaKiwi Programmer Apr 8, 2001 1,294 US Hi jping45 How about { printf ("%s %s %s %s\n", $1, $3, $4 ,$5) print $7 > "tmp.dat" } Change the printf statement to format the fields appropriately. Hope this helps. CaKiwi Upvote 0 Downvote
Hi jping45 How about { printf ("%s %s %s %s\n", $1, $3, $4 ,$5) print $7 > "tmp.dat" } Change the printf statement to format the fields appropriately. Hope this helps. CaKiwi
Nov 13, 2001 Thread starter #3 jping45 Technical User Aug 22, 2001 49 US Thanks again awk-master CaKiwi Upvote 0 Downvote