From owner-freebsd-questions@FreeBSD.ORG Thu Dec 22 19:53:05 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 620BC16A41F for ; Thu, 22 Dec 2005 19:53:05 +0000 (GMT) (envelope-from mi+mx@aldan.algebra.com) Received: from vms040pub.verizon.net (vms040pub.verizon.net [206.46.252.40]) by mx1.FreeBSD.org (Postfix) with ESMTP id AC85B43D5A for ; Thu, 22 Dec 2005 19:53:04 +0000 (GMT) (envelope-from mi+mx@aldan.algebra.com) Received: from corbulon.video-collage.com ([151.204.231.237]) by vms040.mailsrvcs.net (Sun Java System Messaging Server 6.2-4.02 (built Sep 9 2005)) with ESMTPA id <0IRX00AIA0KF4HR8@vms040.mailsrvcs.net> for freebsd-questions@freebsd.org; Thu, 22 Dec 2005 13:53:04 -0600 (CST) Received: from mteterin.us.murex.com (195-11.customer.cloud9.net [168.100.195.11]) by corbulon.video-collage.com (8.13.4/8.13.1) with ESMTP id jBMJqwo3045461 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Thu, 22 Dec 2005 14:53:02 -0500 Received: from mteterin.us.murex.com (mteterin@localhost [127.0.0.1]) by mteterin.us.murex.com (8.13.4/8.13.4) with ESMTP id jBMJqqK9031970; Thu, 22 Dec 2005 14:52:52 -0500 Received: from localhost (localhost [[UNIX: localhost]]) by mteterin.us.murex.com (8.13.4/8.13.4/Submit) id jBMJqoeT031969; Thu, 22 Dec 2005 14:52:50 -0500 Date: Thu, 22 Dec 2005 14:52:50 -0500 From: Mikhail Teterin In-reply-to: <200512222046.22133.tijl@ulyssis.org> To: Tijl Coosemans Message-id: <200512221452.50599.mi+mx@aldan.algebra.com> Organization: Virtual Estates, Inc. MIME-version: 1.0 Content-type: text/plain; charset=koi8-u Content-transfer-encoding: 7bit Content-disposition: inline X-Virus-Scanned: ClamAV devel-20050525/1213/Mon Dec 19 09:48:34 2005 on corbulon.video-collage.com X-Virus-Status: Clean X-Scanned-By: MIMEDefang 2.43 References: <200512211704.49530.mi+mx@aldan.algebra.com> <200512221414.10321.mi+mx@aldan.algebra.com> <200512222046.22133.tijl@ulyssis.org> X-Authentication-warning: mteterin.us.murex.com: mteterin set sender to mi+mx@aldan.algebra.com using -f User-Agent: KMail/1.8.3 Cc: freebsd-questions@freebsd.org 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 19:53:05 -0000 > 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. -mi