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:
Wed, 17 Jul 2002 05:17:03 -0500
Content-Type:
text/plain
Parts/Attachments:
text/plain (32 lines)
 [log in to unmask] (Dennis Handly) writes:
> Barton Lindsey ([log in to unmask]) wrote:
> : cat ./filelist | xargs tar cvf ./tarfile.tar
>
> You mean:  ;-)
>   xargs tar -cvf ./tarfile.tar < ./filelist

Yep. That's what I wrote in my original post :-)

... in the end, the two methods have the exact same outcome.

> This won't work because the last chunk of files will overwrite the
> tarfile starting at the beginning (-c).
>
> Using -rvf doesn't seem to work either (on HP-UX), even if you touch the
> file first:  Tar: blocksize = 0; broken pipe?
>
> It seems you need something there, you can put itself in itself:
> $ > ./tarfile.tar
> $ tar -cvf ./tarfile.tar ./tarfile.tar
> $ xargs tar -rvf ./tarfile.tar < ./filelist

If you're only dealing with a few (hundred) files, you should be sa

--
Bart Lindsey - Programmer / Analyst.               | mailto:[log in to unmask]
HSA Systems Pty Ltd.                               |+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