Quote:
Originally Posted by sycamorex
Welcome to LQ.
What have you done so far to solve this problem?
|
Hi ,
Please find the details as give below
File 1 :
Name : xx
Gender : Male
Age :
Designation : Engineer
Name : yy
Gender : Male
Age :
Designation : Manager
Name : zz
Gender : Male
Age :
Designation : Lead
File 2 :
Name : xx
Age : 28
Name : yy
Age : 30
Name : zz
Age : 40
I was trying to use awk NR==FNR{} commands to merge the contents of File_1 and File_2 to a new file File 3
But i was not getting the desired result as per my requirement
Please help me to get rid of the issue
Thanks
Debajyoti
P.S: Content of File 3 will be as shown below
Name : xx
Gender : Male
Age : 28
Designation : Engineer
Name : yy
Gender : Male
Age : 30
Designation : Manager
Name : zz
Gender : Male
Age :40
Designation : Lead