I'm new to scripting so I need some help with this. I've searched for two days and cannot grasp this!
What I'm doing is scanning a directory for particular files and then counting the results and piping it to a file.
dir *.DONE | find "04338" /c >>04338.txt
So the results look like this:
14 14 (blank line for carriage return)
My application is trying to read this file and run commands against it using RegEx. That part works fine except the application does not assign variables using multi-line match properly... it will grab the data fine but I cannot output it properly.
Because of this I have to write all of the data to one line. Eventually I want it to look like this:
14,14,14,14,14,14,14
I cannot for the life of me figure out how to get it onto one line. Please help!