I have two files. The content of both files has dynamic and generated by the system when required.
The first file contains the meaning for specific row number as below :
head simdb.txt MSISDN Account_ID COSP_ID Currency Language Home_Zone SIM_PIN Screening_PIN Third_ParAnothercess_PIN Cumulative_Incorrect_PIN
Other file contains the dynamic data as below
head subscriber.txt 0='917598936722' 4='ENG' 6='1234'
Output should be like :
0='917598936722' //MSISDN 4='ENG' //Language 6='1234' //SIM_PIN
Adding to the above query, if subscriber.txt would have multiple lines then how can we have a script to print line first then it required output? For example, if we subscriber.txt file like below
head subscriber.txt 0='917598936722' 4='ENG' 6='1234' 0='919654680634' 4='ENG' 6='1234'
Then desired output be like :
0='917598936722' 4='ENG' 6='1234' 0='917598936722' //MSISDN 4='ENG' //Language 6='1234' //SIM_PIN
0='919654680634' 4='ENG' 6='1234' 0='919654680634' //MSISDN 4='ENG' //Language 6='1234' //SIM_PIN