From owner-freebsd-questions@FreeBSD.ORG Thu Dec 22 21:37:01 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org 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 6A0CC16A41F for ; Thu, 22 Dec 2005 21:37:01 +0000 (GMT) (envelope-from don.hinton@vanderbilt.edu) Received: from smtp02.smtp.vanderbilt.edu (smtp02.smtp.Vanderbilt.Edu [129.59.1.93]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6CFE043D9C for ; Thu, 22 Dec 2005 21:35:42 +0000 (GMT) (envelope-from don.hinton@vanderbilt.edu) Received: from smtp02.smtp.vanderbilt.edu (localhost [127.0.0.1]) by smtp02.smtp.vanderbilt.edu (8.12.11/8.12.11/VU-3.7.9C+d3.7.9) with ESMTP id jBMLZP8o000348; Thu, 22 Dec 2005 15:35:25 -0600 (CST) Received: from a129103.n1.vanderbilt.edu (A129103.N1.Vanderbilt.Edu [129.59.129.103]) by smtp02.smtp.vanderbilt.edu (8.12.11/8.12.11/VU-3.7.9.3B+d3.7.9) with ESMTP id jBMLZMIR000290 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NO); Thu, 22 Dec 2005 15:35:23 -0600 (CST) From: Don Hinton Organization: ISIS To: freebsd-questions@freebsd.org Date: Thu, 22 Dec 2005 15:33:50 -0600 User-Agent: KMail/1.8.2 References: <200512211704.49530.mi+mx@aldan.algebra.com> <200512222046.22133.tijl@ulyssis.org> <200512221452.50599.mi+mx@aldan.algebra.com> In-Reply-To: <200512221452.50599.mi+mx@aldan.algebra.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1347489.ylz1jkMKKb"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200512221533.53804.don.hinton@vanderbilt.edu> Cc: Mikhail Teterin Subject: Re: what's an equivalent for the following Perl one-liner? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Dec 2005 21:37:01 -0000 --nextPart1347489.ylz1jkMKKb Content-Type: text/plain; charset="koi8-u" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Thursday 22 December 2005 13:52, Mikhail Teterin wrote: > > Try col(1) or tr(1) to remove the carriage return and then sed to remove > > the spaces. > > Well, yes, but that's a two-stage process. A shame to go through the whole > file twice just because our tools aren't good enough. How about this: sed 's/ *[[:cntrl:]]$//'=20 hth... don > > -mi > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org" =2D-=20 Don Hinton 615.480.5667 ISIS, Vanderbilt University --nextPart1347489.ylz1jkMKKb Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQBDqxvB0U0xbM5cLs0RAlIBAJ933Gav0o0NffCSUmTgKhmwVS/iCQCfQZmt yzq88ptOVr/wYheDxmkjhpU= =vf60 -----END PGP SIGNATURE----- --nextPart1347489.ylz1jkMKKb--