Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

cat to awk question

Status
Not open for further replies.

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.
 
awk -f scriptname.awk file1 file2

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Indeed! I do like to experiment with the many ways of skinning them though....

Annihilannic.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top