HP3000-L Archives

July 2002, Week 3

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Barton Lindsey <[log in to unmask]>
Reply To:
Barton Lindsey <[log in to unmask]>
Date:
Tue, 16 Jul 2002 02:32:03 -0500
Content-Type:
text/plain
Parts/Attachments:
text/plain (36 lines)
 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 *

ATOM RSS1 RSS2