A text file has 2 fields (Data, Filename) delimited by # as below,
Data,Filename
Row1 -> abc#Test1.xml
Row2 -> xyz#Test2.xml
Row3 -> ghi#Test3.xml
The content in first field has to be written into a file where filename should be considered from second field.
So from the above example
- Data 'abc' should be written into a file named Test1.xml
- Data 'xyz' should be written into a file named Test2.xml
- Data 'ghi' should be written into a file named Test3.xml
Is it possible to acheive this using Shellscript, please help me with the logic.