Jeff Woods <[log in to unmask]> writes:
> Donna Garverick wrote (in part):
> >:print ./dgtemp
> > /SYS/PUB/DSGLIST2
> > /SYS/PUB/DSGLIST3
> > /SYS/PUB/DSGTEST
> >:tar '-cvf ./tartest' < ./dgtemp
>
[...]
> The "tar" command doesn't read a list of files from stdin; it takes them
> as arguments on the command line.
>
> If you were using the POSIX shell to invoke tar with an "indirect file"
> of pathnames to archive, you could use command substitution and "cat" to
> insert the contents of the indirect file into the command-line:
>
> tar cvf test.tar $(cat indirect.file)
>
... or perhaps something like this might do the job:
:xargs 'tar -cvf ./tartest' < ./dgtemp
Cheers,
Bart.
--
Bart Lindsey - Programmer / Analyst. | mailto:[log in to unmask]
Hydrographic Sciences Australia. |+612 9957 3549 (office)
Specialists in Hydrographic Information Technology.|+612 9959 3594 (fax)
* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *