Subject: Re: cat(1) question: multiple "-"s
To: Johnny Billquist <bqt@update.uu.se>
From: Chavdar Ivanov <ci4ic4@gmail.com>
List: netbsd-users
Date: 04/18/2006 15:43:33
On 18/04/06, Johnny Billquist <bqt@update.uu.se> wrote:
> Hubert Feyrer wrote:
> > On Tue, 18 Apr 2006, Johnny Billquist wrote:
> >
> >> Try something simple like "cat - makefile -" ?
> >> Don't know how much sense I can claim it makes, but it's a way of
> >> putting user input before and after some other file.
> >
> > I understand it makes some sense for interactive use, but is that reall=
y
> > the only point?
>
> Think so. You can't get an EOF from a redirected input, and then provide
> more data that way.
>
> But maybe I've missed something?

Yes, the fact that there some other shells available...

under zsh:

root@loan8> cat /tmp/1                                               =20
                                             /tmp
11111
root@loan8> cat /tmp/2                                               =20
                                             /tmp
22222
root@loan8> cat /tmp/3                                               =20
                                             /tmp
33333
root@loan8>   cat - - - < /tmp/1 < /tmp/2 </tmp/3                    =20
                                             /tmp
11111
22222
33333


Cheers.

>
>         Johnny
>
> --
> Johnny Billquist                  || "I'm on a bus
>                                    ||  on a psychedelic trip
> email: bqt@update.uu.se           ||  Reading murder books
> pdp is alive!                     ||  tryin' to stay hip" - B. Idol
>