Hello,
I couldn't find anything on the Forum that would help me to solve this problem. Could any body help me process below data using awk?
I have got two files:
file1:
Worker1: Thomas
Position: Manager
Department: Sales
Salary: $5,000
Worker2: Jason
Position: Developer
Department: Technology
Salary: $5,500
Worker3: Sanjay
Position: Sysadmin
Department: Technology
Salary: $7,000
Worker4: Nisha
Position: Manager
Department: Marketing
Salary: $9,500
Worker5: Randy
Position: DBA
Department: Technology
Salary: $6,000
file2:
Thomas
Nisha
I need to create file3 that contains x lines from file2 after occurrence of expression from file1 to look like
Worker1: Thomas
Position: Manager
Department: Sales
Salary: $5,000
Worker4: Nisha
Position: Manager
Department: Marketing
Salary: $9,500