Oct 14, 2008 #1 gsopitan MIS Oct 14, 2008 5 US I have to files say file1 and file2. They both have the same fields. I want to append file1 to file2 and then run an awk script on it. I tried; cat file1 > file2 | awk -f scriptname.awk but it didn't work. Any ideas would be appreciated.
I have to files say file1 and file2. They both have the same fields. I want to append file1 to file2 and then run an awk script on it. I tried; cat file1 > file2 | awk -f scriptname.awk but it didn't work. Any ideas would be appreciated.
Oct 15, 2008 #2 PHV MIS Nov 8, 2002 53,708 FR awk -f scriptname.awk file1 file2 Hope This Helps, PH. FAQ219-2884 FAQ181-2886 Upvote 0 Downvote
Oct 15, 2008 #3 demis001 Programmer Aug 18, 2008 94 US cat file2 file1 > file3 awk -f scriptname file3 Demis001 Upvote 0 Downvote
Oct 15, 2008 #4 Annihilannic MIS Jun 22, 2000 6,317 AU Or just remove the ">" from your original command. Annihilannic. Upvote 0 Downvote
Oct 15, 2008 #6 Annihilannic MIS Jun 22, 2000 6,317 AU Indeed! I do like to experiment with the many ways of skinning them though.... Annihilannic. Upvote 0 Downvote