kartapacio
Technical User
Hi everybody,
I´m afraid this is something very stupid, but is driving me mad!!
I cant find a way to remove a ^M mark. That mark is^M present at the end of the line like this one^M
^M
^M (this i get if the line is empty)
I can see it only when I edit the file with vi (if i do a 'more' of the file, i cant see it.)
I guess is some sort of trailing character (The file´s source is a printing of a cobol program).
How can i remove that mark and leave it with the usual ^ for beguinnig and $ for end? (i`ve tried several sed commands but can´t find the way of doing it)
Any help would be very appreciated, thank´s in advance
I´m afraid this is something very stupid, but is driving me mad!!
I cant find a way to remove a ^M mark. That mark is^M present at the end of the line like this one^M
^M
^M (this i get if the line is empty)
I can see it only when I edit the file with vi (if i do a 'more' of the file, i cant see it.)
I guess is some sort of trailing character (The file´s source is a printing of a cobol program).
How can i remove that mark and leave it with the usual ^ for beguinnig and $ for end? (i`ve tried several sed commands but can´t find the way of doing it)
Any help would be very appreciated, thank´s in advance