From owner-freebsd-questions Sat May 5 7:20:33 2001 Delivered-To: freebsd-questions@freebsd.org Received: from hawk.mail.pas.earthlink.net (hawk.mail.pas.earthlink.net [207.217.120.22]) by hub.freebsd.org (Postfix) with ESMTP id 1742E37B423 for ; Sat, 5 May 2001 07:20:31 -0700 (PDT) (envelope-from dleimbac@earthlink.net) Received: from 1Cust61.tnt1.starkville.ms.da.uu.net (1Cust61.tnt1.starkville.ms.da.uu.net [63.30.107.61]) by hawk.mail.pas.earthlink.net (EL-8_9_3_3/8.9.3) with ESMTP id HAA05296; Sat, 5 May 2001 07:20:31 -0700 (PDT) Message-Id: <200105051420.HAA05296@hawk.mail.pas.earthlink.net> Date: Sat, 05 May 2001 04:22:35 CDT From: dave To: Bill Hickum , freebsd-questions@freebsd.org Subject: Re: How do yo do that cool pipe | trick Reply-To: dleimbac@earthlink.net X-Mailer: Spruce 0.6.5 for X11 w/smtpio 0.7.9 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG You should read up and learn about sed. The stream editor!!! If it's too cryptic for you try awk. Dave On Sat, 5 May 2001, Bill Hickum wrote: > Date: Sat, 5 May 2001 06:35:34 -0700 (PDT) > To: freebsd-questions@freebsd.org > From: Bill Hickum > Subject: How do yo do that cool pipe | trick > > 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 > > newgate[/etc]> vi | grep -ls hosts * > host.conf > hosts.allow > hosts.equiv > hosts.lpd > printcap > services > ex/vi: Vi's standard input and output must be a > terminal > > What's 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. > > __________________________________________________ > Do You Yahoo!? > Yahoo! Auctions - buy the things you want at great prices > http://auctions.yahoo.com/ > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message