Oct 14, 2008 #1 gsopitan MIS Joined Oct 14, 2008 Messages 5 Location 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 Joined Nov 8, 2002 Messages 53,708 Location FR awk -f scriptname.awk file1 file2 Hope This Helps, PH. FAQ219-2884 FAQ181-2886 Upvote 0 Downvote
Oct 15, 2008 #3 demis001 Programmer Joined Aug 18, 2008 Messages 94 Location US cat file2 file1 > file3 awk -f scriptname file3 Demis001 Upvote 0 Downvote
Oct 15, 2008 #4 Annihilannic MIS Joined Jun 22, 2000 Messages 6,317 Location AU Or just remove the ">" from your original command. Annihilannic. Upvote 0 Downvote
Oct 15, 2008 #5 PHV MIS Joined Nov 8, 2002 Messages 53,708 Location FR Anni, what about UUOC ?<grin> Upvote 0 Downvote
Oct 15, 2008 #6 Annihilannic MIS Joined Jun 22, 2000 Messages 6,317 Location AU Indeed! I do like to experiment with the many ways of skinning them though.... Annihilannic. Upvote 0 Downvote