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:
Reply To:
Date:
Tue, 16 Jul 2002 12:32:09 +0200
Content-Type:
text/plain
Parts/Attachments:
text/plain (90 lines)
How about
   cat ./filelist | tar cvf ./tarfile.tar -

   Regards,

    -- Andres j. Ogayar
    -- I.T. Department
    -- Raytheon Microelectronics Espaņa, S.A.
    -- +34.95.224.92.27 Tel.
    -- +34.95.224.92.47  Fax.

This e-mail, including any attached files, is confidential, may be legally
privileged, and is solely for the intended recipient(s). If you received
this e-mail in error, please destroy it and notify the sender immediately
by reply or phone. Any unauthorized use, dissemination, disclosure, copying
or printing of this e-mail or any attached file is strictly prohibited.






                                                                                                           
                    Barton Lindsey                                                                         
                    <[log in to unmask]        Para:   [log in to unmask]                                   
                    AU>                   cc:                                                              
                    Enviado por:          Asunto:      Re: making a tar file?                              
                    HP-3000                                                                                
                    Systems                                                                                
                    Discussion                                                                             
                    <HP3000-L@RAVE                                                                         
                    N.UTC.EDU>                                                                             
                                                                                                           
                                                                                                           
                    16/07/2002                                                                             
                    09:32                                                                                  
                    Por favor,                                                                             
                    responda a                                                                             
                    Barton Lindsey                                                                         
                                                                                                           
                                                                                                           




    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 *






* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *

ATOM RSS1 RSS2