There are 10 files present which have Ctlr-M characters appended to each line of all files.
I have a unix script which processes the files in a loop.
And there is an inner loop which processes each line in the file concerned.
#inputFile is a variable which has the file name of the input file(eachFile)
...outer loop
inputFile=eachFile
...inner loop
while read record
.
.
done
How do I remove all the Ctlr-M characters and write the same contents to the same input file.Also the input file name will change for each file so we cant hard code the input file name
Thanks
Abhinav