Hi, > 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. Regards, Sergey
