[lug] Re: [QCLUG] what is the correct script to pipe zcat into xdvi (fwd)

Rob Mohr robmohr at earthnet.net
Fri Dec 14 16:12:15 MST 2001


On Fri, Dec 14, 2001 at 08:15:46AM -0700, Rob Mohr wrote:

> I have several files I wish to puruse, such as docstrip.dvi.gz,
> ltnews04.dvi.gz, and fntguide.dvi.gz and so on.  And I want to use zcat to
> leave them in their current squashed state.  

> $ xdvi < zcat docstrip.dvi.gz  (this does not work)

The > and < operators specify output or input *files*; specifically,
this command is going to look for a file in the current directory called
'zcat' that it can use as input.

> zcat docstrip.dvi.gz | xdvi   (this works so far as to prompt for a
*.dvi)

The standard mechanism for choosing 'stdin' as your file is to use '-'
as the filename.  So you might try:

$ zcat docstrip.dvi.gz | xdvi - (Note, this yields a "No such file or
directory" retort.  Any other ideas for script?  Rob Mohr)

I have no idea if xdvi supports that, though.

Cheers,
Steve Langasek
postmodern programmer




More information about the LUG mailing list