I have a requirement to replace ctrl+M char in a file. I tried sed command like this.
sed -e "s/^M//" TI.txt > HY.txt . This worked fine for me two days ago. Now I am trying the same for a new file, but not working(it is giving HY.txt as 0 bytes , empty file). Then I tried the same for the previous file that worked perfect, that also failing now.
I don't know , am I missing some thing.
FYI: I am not a unix/linux developer. I am oracle developer , knows some of the Unix commands to help me in my work.
If any idea or tips for removing ctrl M char , please share it here. It is an urgent requirement.