[lug] cpio

Robert racsw at frontiernet.net
Tue Apr 8 15:35:51 MDT 2003


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.



Robert <racsw at frontiernet.net>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 232 bytes
Desc: This is a digitally signed message part
URL: <http://lists.lug.boulder.co.us/pipermail/lug/attachments/20030408/a273bf66/attachment.pgp>


More information about the LUG mailing list