[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-cpio] cpio nonmatching option not working

From: Sergey Poznyakoff
Subject: Re: [Bug-cpio] cpio nonmatching option not working
Date: Sat, 26 Jun 2010 17:15:07 +0300


>    Hi, I am using RedHat Linux and the cpio version I have is version
>    2.6.  I use "-f" or "--nonmatching" option to exclude certain files
>    when restoring from a cpio archive.  But, it always restore all
>    files.  For example, the cpio archive contains many directories and
>    files.  I want to exclude files or directories with name "out".
> cpio -idumB -f out < /tmp/tsc.cpio

That would exclude only one file name: 'out', literally. To exclude all
files containing 'out' anywhere in their names, use '*out*'. To exclude
only those files that begin with 'out', use 'out*'. See `man 7 glob' for
more details and examples.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]