I have a file that includes temperatures along with a degree symbol that I want to remove. It looks like this in Notepad++:
40238230,194°,47136
The symbol does not print with a plain cat
:
40238230,194,47136
But cat -e
shows M-0
where the symbol is:
40238230,194M-0,47136
How can I get rid of that symbol? I thought the following sed would do it (by including only digits and commas), but doesn't:
sed -r 's/[^0-9\,]//g'