From owner-freebsd-questions Fri Aug 29 17:58:15 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id RAA09688 for questions-outgoing; Fri, 29 Aug 1997 17:58:15 -0700 (PDT) Received: from mackay01.cqit.qld.edu.au (root@cqit.qld.edu.au [203.22.80.2]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id RAA09683 for ; Fri, 29 Aug 1997 17:58:11 -0700 (PDT) Received: from carbon.chalmers.com.au (carbon.cqit.qld.edu.au [203.22.80.5]) by mackay01.cqit.qld.edu.au (8.7.3/8.6.9) with ESMTP id KAA19042 for ; Sat, 30 Aug 1997 10:52:59 +1000 (EST) Message-ID: <34076F58.B5DBAC3F@chalmers.com.au> Date: Sat, 30 Aug 1997 10:54:50 +1000 From: Robert Chalmers Reply-To: robert@chalmers.com.au Organization: chalmers.com.au X-Mailer: Mozilla 4.01 [en] (Win95; I) MIME-Version: 1.0 To: freebsd-questions Subject: Stripping ^M from llines? X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Hi, Anyone got a handy program for stripping the ^M from text lines in fbsd? I currently use tr -d '\015', but this falls over text that has the : chararacter in it, complaining about it being a directory? cheers, Bob -- http://www.chalmers.com.au Books-New & Secondhand Support Whirled Peas. Agents for CIBTC. Associate of Amazon.com, and Partner Program with iBS. Books about China, books from China. Sheng huo jiu shi dou zheng Business Links in Dalian, and Beijing. Building the China Trade