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 <yh2789@yahoo.com>
> 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