Use
sed -e ‘s/^M//g’ file
where ^M is the crtl-m character
normally inserted by typing Ctrl-V Ctrl-M
Alternatively, grab dos2unix from somewhere.
Tech Tips and Tricks
Use
sed -e ‘s/^M//g’ file
where ^M is the crtl-m character
normally inserted by typing Ctrl-V Ctrl-M
Alternatively, grab dos2unix from somewhere.