Computing.Net > Forums > Unix > pass 2 input files to awk script

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

pass 2 input files to awk script

Reply to Message Icon

Name: ak12345
Date: January 7, 2003 at 20:34:48 Pacific
OS: HP-UX
CPU/Ram: ?
Comment:

Hi,

Does anyone know if it's possible to pass 2 files to an awk script. I need to compare the contents of two files.

Thanks in advance

ak



Sponsored Link
Ads by Google

Response Number 1
Name: James Boothe
Date: January 8, 2003 at 08:18:49 Pacific
Reply:

awk can read multiple files. See my solution to "Can we do this in UNIX?" about 10 entries below this one. That solution rebuilds one file by pulling matching info from a second file.

I would have to know your requirements better before suggesting an approach.


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Unix Forum Home


Sponsored links

Ads by Google


Results for: pass 2 input files to awk script

how to fetch the fileds from 2 text files? www.computing.net/answers/unix/how-to-fetch-the-fileds-from-2-text-files/8373.html

Giving an input value to a script www.computing.net/answers/unix/giving-an-input-value-to-a-script/8387.html

awk script www.computing.net/answers/unix/awk-script/7067.html