From owner-freebsd-newbies Thu Mar 29 22: 4:15 2001 Delivered-To: freebsd-newbies@freebsd.org Received: from spork.pantherdragon.org (spork.pantherdragon.org [206.29.168.146]) by hub.freebsd.org (Postfix) with ESMTP id 3C2FB37B71C for ; Thu, 29 Mar 2001 22:04:14 -0800 (PST) (envelope-from dmp@pantherdragon.org) Received: from pantherdragon.org (unknown [206.29.168.147]) by spork.pantherdragon.org (Postfix) with ESMTP id 726AE471C5; Thu, 29 Mar 2001 22:04:08 -0800 (PST) Message-ID: <3AC421D8.4D6B251A@pantherdragon.org> Date: Thu, 29 Mar 2001 22:04:08 -0800 From: dmp X-Mailer: Mozilla 4.51 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Linh Pham Cc: "J.Goodleaf" , newbies@freebsd.org Subject: Re: What is that ^M character? References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-newbies@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org 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