Need a script that will read from 2 input file

Hi Everyone.

I am new in this scripting world. I need to know about script that I can use on linux/sun operating systems. I have 2 input file.

File 1: Its has an header information and then data in 2 different columns.
File 2 : It has data in 9 different columns/

I need an script that will read my input files and will give me a file that has header+data extracted from 2 colums from file 1 and last 8 columns of file 2.

I really appreciate if anyone can help me out in my aformentioned task.

Please let me know if my post is not well descriptive.

Waiting of your response.

sy

please post example of your input files and desired output to better understand you?

Using FNR and NR in AWK, you can easily process more than 1 file in AWK

See my blog:
use FNR in AWK

Have a look at this post: unix-loop