From owner-freebsd-questions@FreeBSD.ORG Fri Jan 16 00:15:57 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0B2DC16A4CE for ; Fri, 16 Jan 2004 00:15:57 -0800 (PST) Received: from madras.dyndns.org (dsl-137.241.240.220.dsl.comindico.com.au [220.240.241.137]) by mx1.FreeBSD.org (Postfix) with ESMTP id A157143D58 for ; Fri, 16 Jan 2004 00:15:52 -0800 (PST) (envelope-from ggop@madras.dyndns.org) Received: from madras.dyndns.org (localhost [127.0.0.1]) by madras.dyndns.org (8.12.10/8.12.10) with ESMTP id i0G8E7gr002858; Fri, 16 Jan 2004 19:14:10 +1100 (EST) (envelope-from ggop@madras.dyndns.org) Received: (from ggop@localhost) by madras.dyndns.org (8.12.10/8.12.10/Submit) id i0G8E42R002857; Fri, 16 Jan 2004 19:14:04 +1100 (EST) (envelope-from ggop) Date: Fri, 16 Jan 2004 19:14:00 +1100 From: Gautam Gopalakrishnan To: Evan Sayer Message-ID: <20040116081400.GA2693@madras.dyndns.org> References: <29AAE3F4-47D1-11D8-946B-000A95CCF8C4@san.rr.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <29AAE3F4-47D1-11D8-946B-000A95CCF8C4@san.rr.com> User-Agent: Mutt/1.4.1i cc: freebsd-questions@freebsd.org Subject: Re: your mail X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Jan 2004 08:15:57 -0000 On Thu, Jan 15, 2004 at 07:07:48PM -0800, Evan Sayer wrote: > FreeBSD- > Please help, this is really important. I was told that i could get rid > of the ^m symbols at the end of the lines in my web page's html code > by using sed. They said to execute sed "s//^m^m" index.html > > index.html or something like that. This got rid of everything in the > file. I really need this back, so any help would be greatly > appreciated. If the file with ^M in it is called file.txt, then run dos2unix on it: dos2unix file.txt file.txt Install the program from /usr/ports/converters/unix2dos hope that helps Gautam PS: Obviously, please make backups before trying anything.