Date: Sat, 5 May 2001 09:55:00 -0400 From: "Matthew Emmerton" <matt@gsicomp.on.ca> To: "Bill Hickum" <yh2789@yahoo.com>, <freebsd-questions@FreeBSD.ORG> Subject: Re: How do yo do that cool pipe | trick Message-ID: <003a01c0d56a$fbd342f0$1200a8c0@gsicomp.on.ca> References: <20010505133534.30774.qmail@web10907.mail.yahoo.com>
next in thread | previous in thread | raw e-mail | index | archive | help
> 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'm not sure what you're trying to do, but I think this is what you want to do: ls | grep hosts > /tmp/output vi /tmp/output vi is an editor, and can only work on files. You can't pipe stuff to/from vi. > What's a terminal? A fancy historical name for a keyboard/display combo. -- Matt Emmerton 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?003a01c0d56a$fbd342f0$1200a8c0>