[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

stripping the ^M



Just for kicks, I decided to try and strip the nasty ^M from windows/dos
text files using sed.

$ sed -e s/^M//g filename

doesn't work.  And neither does

$ sed -e s/\^M//g filename

How can you match control characters in the regexp?



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]