From owner-freebsd-questions Sat May 5 15:18:40 2001 Delivered-To: freebsd-questions@freebsd.org Received: from mtiwmhc21.worldnet.att.net (mtiwmhc21.worldnet.att.net [204.127.131.46]) by hub.freebsd.org (Postfix) with ESMTP id 0653937B422 for ; Sat, 5 May 2001 15:18:38 -0700 (PDT) (envelope-from parv@worldnet.att.net) Received: from worldnet.att.net ([32.101.235.104]) by mtiwmhc21.worldnet.att.net (InterMail vM.4.01.03.16 201-229-121-116-20010115) with ESMTP id <20010505221837.ZEAG4696.mtiwmhc21.worldnet.att.net@worldnet.att.net> for ; Sat, 5 May 2001 22:18:37 +0000 Received: by worldnet.att.net (Postfix, from userid 1001) id 33B3A196CE; Sat, 5 May 2001 17:56:22 -0400 (EDT) Date: Sat, 5 May 2001 17:56:21 -0400 From: parv To: f-q Subject: Re: How do yo do that cool pipe | trick Message-ID: <20010505175621.A457@moo.holy.cow> Mail-Followup-To: f-q References: <20010505133534.30774.qmail@web10907.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20010505133534.30774.qmail@web10907.mail.yahoo.com>; from yh2789@yahoo.com on Sat, May 05, 2001 at 06:35:34AM -0700 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG so, Bill Hickum shared this in my lifetime... > It doesn't work like I think it's going to. > > newgate[/etc]> grep -ls hosts * | vi > ex/vi: Vi's standard input and output must be a > terminal > [ ... ] > > I did the man pipe and man xargs but man pages aren't > any good unless you don't need them. What kind of > people write like that. > you need: # grep -l hosts * | xargs vi [----] usage of xargs(1) is clearly there in first 2 paragraphs under DESCRIPTION (and SYNOPSIS). -- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message