[SATLUG] Odd behavior with sed and $

Don Davis dondavis at reglue.org
Wed Feb 24 18:12:18 CST 2010

I'm trying to replace the end of lines in a file with " using sed. When 
I cat one file it works as predicted. When I cat another and use sed it 
doesn't; instead it is replacing the initial character with ". (Yes I 
have enlarged the terminal screen.)


cat -E shows $ in front.

Using cat -v I see ^M at the end of the line. What is ^M in hat 
notation? (Where do I find this?)

More information about the SATLUG mailing list