From owner-freebsd-questions Wed Aug 9 22:13: 0 2000 Delivered-To: freebsd-questions@freebsd.org Received: from merganser.its.uu.se (merganser.its.uu.se [130.238.6.236]) by hub.freebsd.org (Postfix) with ESMTP id DB03E37B756 for ; Wed, 9 Aug 2000 22:12:57 -0700 (PDT) (envelope-from ertr1013@student.uu.se) Received: from regulus.student.UU.SE ([130.238.5.2]:46035 "HELO ertr1013.student.uu.se") by merganser.its.uu.se with SMTP id ; Thu, 10 Aug 2000 07:12:20 +0200 Received: (qmail 1482 invoked by uid 1001); 10 Aug 2000 05:12:31 -0000 Date: Thu, 10 Aug 2000 07:12:31 +0200 From: Erik Trulsson To: Kisanak Cc: questions@FreeBSD.org Subject: Re: ^M Message-ID: <20000810071231.B1409@student.uu.se> Mail-Followup-To: Kisanak , questions@FreeBSD.org References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from kisanak@cbn.net.id on Thu, Aug 10, 2000 at 11:25:00AM +0700 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Thu, Aug 10, 2000 at 11:25:00AM +0700, Kisanak wrote: > Dear All. > How do I get rid off all "^M" word in a text file: > > ^M > ^M > ^M > ^M > > Thanks > Kisanak. Wasn't this question asked just a few days ago? Yes it was. There are many ways of doing this. One way is to pipe the file through tr(1). Example: tr -d '\r' < infile > outfile -- Erik Trulsson ertr1013@student.uu.se To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message