Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 3 Apr 2002 20:34:57 -0500 (EST)
From:      Peter Leftwich <Hostmaster@Video2Video.Com>
To:        Warren Block <wblock@wonkity.com>
Cc:        ann kok <annkok2001@yahoo.com>, FreeBSD Questions <FreeBSD-Questions@FreeBSD.Org>
Subject:   Re: special charaters (return key)
Message-ID:  <20020403203320.X70185-100000@earl-grey.cloud9.net>
In-Reply-To: <Pine.BSF.4.21.0204031813590.76705-100000@wonkity.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 3 Apr 2002, Warren Block wrote:
> On Wed, 3 Apr 2002, ann kok wrote:
> > how do type the special charater? ^M (return key) I want to remove it on the file
> > sed 's/^M//g' crt1.txt
> Seems like last time I wanted to do this, the BSD sed didn't understand that a \r should be a return.  Perl does, though:
> perl -pi -e 's/\r//g' crt1.txt
> -Warren Block * Rapid City, South Dakota USA

This was going to be part of my suggested rememdy (i.e. to use perl) but it
seemed too complex.  The manpage for "perl" doesn't mention -pi nor does it
mention -e; Could you explain what this command does?  I think there should
be a simple command to change a file into one long line :)

--
Peter Leftwich
President & Founder
Video2Video Services
Box 13692, La Jolla, CA, 92039 USA
+1-413-403-9555


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020403203320.X70185-100000>