[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 *