thompsma at colorado.edu
Tue Apr 8 16:16:13 MDT 2003
On Tue, 2003-04-08 at 15:35, Robert wrote:
> On Mon, 2003-04-07 at 20:38, Bear Giles wrote:
> > Robert wrote:
> > > I'm using this syntax:
> > >
> > > find -name $TARGET -print | cpio -oAO $ARCHIVE_FILE
> > >
> > > I thought the syntax was correct, but apparently not, as I receive this
> > > error"
> > >
> > > "cpio: premature end of file"
> > You need to either use
> > find ... -print0 | cpio -oA0 ...
> > or
> > find ... -print | cpio -oA ...
> > The former is preferred since it will handle files with embedded
> > spaces.
> > Bear
> I tried both, the first results in the same error, the second brings
> up the MAN cpio page, indicating incorrect syntax.
Well, just to let you know, I can't seem to do this without using a > or
>> operator and just -o.
If I might ask, though, can you use other archivers? I do this often
with pax. This:
find -name 'molpro*' -depth | pax -w -x bcpio -f molpro.pax
works quite well and builds a cpio archive (well a "byte-swapped cpio
archive", pax seems to support 3 or 4 cpio standards).
"And isn't sanity really just a one-trick pony, anyway? I mean,
all you get is one trick, rational thinking, but when you're good
and crazy, ooh ooh ooh, the sky's the limit!" -- The Tick
The Matt -- http://ucsub.colorado.edu/~thompsma/
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 189 bytes
Desc: This is a digitally signed message part
More information about the LUG