Need help on accessing 2 files in awk
Need Urgent Help:
The i/p file looks like
aa 123 0 0 0
bb 123 2 1 0
A condition which has to be checked is whether character (7-8) is ' 0' and character (9-10) is ' 0'. If condition is satisfied , the first 2 characters are taken as key (for eg. 'aa' in 1 st row)
This key must be used to fetch some fields( characters 1-2 and 7-10) from the 2nd file which is of the format
aa asd 789
bb zxc 890
and write those fields alone to the 3rd file.
Can anyone please explain how the above can be accomlpished using awk command??
|