What I am trying to do here is to parse every row in filename.txt file and then run 2nd FOR loop to output it into another text file.
Filename.txt has multiple rows which looks something like this:
[email protected]|Filename.csv
[email protected]|Filenam1.csv
[email protected]|Filename.csv
and so on.
I need help in building a script to read the lines one by one for example I want to read
[email protected]|Filename.csv 1st and then do some operations and after the operations are done, I want to to goto the next line and do the same operations. The output of the operations will be stored in a file and will be overwritten every time the loop counter increments and goes to the next line.
My output file should contain only 1 row at a time and not all the rows. What I am thinking is to create a counter and then use that counter in the for loop and then do the operations but I am not getting the desired output.
I went through the threads where something similar was asked but could not solve my issue.