Edit file on Windows, shows ^M on each line on Linux

Steve Alligood steve at bluehost.com
Fri Apr 13 09:48:06 MDT 2007


And always make a backup of the original file.

Joseph Hall wrote:
> Window and DOS use <CR><LF> as its end of line marker, whereas Unix
> and Linux only use <LF>. When you open a Windows file in something
> such as vi in Linux, you get ^M at the end, which represents the <CR>.
> 
> You can use dos2unix to stip the ^M from your files in Unix and Linux:
> 
> $ dos2unix filename.ext
> 
> Keep in mind that it will replace the original file with the converted 
> file.
> 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3241 bytes
Desc: S/MIME Cryptographic Signature
Url : http://plug.org/pipermail/plug/attachments/20070413/acb937b2/attachment.bin 


More information about the PLUG mailing list