Date: Thu, 29 Mar 2001 10:15:05 -0800 (PST) From: Linh Pham <lplist@closedsrc.org> To: "J.Goodleaf" <john@goodleaf.net> Cc: <newbies@freebsd.org> Subject: Re: What is that ^M character? Message-ID: <Pine.BSF.4.33.0103291011460.37529-100000@q.closedsrc.org> In-Reply-To: <20010329183144.635AE5C11@clyde.goodleaf.net>
next in thread | previous in thread | raw e-mail | index | archive | help
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. There is a port in FreeBSD called dos2unix (or vice versa) that will allow you to convert between DOS/Windows based files to UNIX style files and the other way around. There are other ways of doing via sed, vi, tr, Emacs, etc. -- Linh Pham [lplist@closedsrc.org] // 404b - Brain not found 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?Pine.BSF.4.33.0103291011460.37529-100000>