|I could have, had I been on a computer and not my phone!|
In any case, I set the echo to on so I could watch it run - it looks like it outputs the data string correctly but it's been running for 30 minutes now and there is still nothing in the output file. So I guess it might work but if it takes more than 30 minutes to run each file it would take days to run 1824 files.
As I said, I used another script you wrote to extract the individual lines then merged them.
And at 35 minutes, the output file is now 1kb but the script is still reading the same file.
Thank you again for responding, I appreciate your help....