Date: Thu, 29 Mar 2001 22:04:08 -0800 From: dmp <dmp@pantherdragon.org> To: Linh Pham <lplist@closedsrc.org> Cc: "J.Goodleaf" <john@goodleaf.net>, newbies@freebsd.org Subject: Re: What is that ^M character? Message-ID: <3AC421D8.4D6B251A@pantherdragon.org> References: <Pine.BSF.4.33.0103291011460.37529-100000@q.closedsrc.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Linh Pham wrote: > > On 2001-03-29, J.Goodleaf scribbled: > > # I have a file I'm playing with, output from a windoze based database > # application. When I open it in vi or emacs it's loaded with ^M characters. > # What the heck are those? Anyone have perl or shell scripts that would allow > # me to strip them out or put them in? > > Windows text files include both the carriage return (CR) and the line > feed (LF) to represent a newline. UNIX only uses the line feed (LF) if > I'm correct... and the ^M ``character'' would represent the line feed > character. The ^M is the CR. DOS text files also have a ^Z (EOF char) at the end of the file. Windows do not have the ^Z. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-newbies" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3AC421D8.4D6B251A>