cpio - How to list files in archive without recursing into directories?
by PepperLegs from LinuxQuestions.org on (#52Q6V)
Hello! As the title suggests, I'm currently wondering how to accomplish something like this. Let's say I cloned Grub git repo and want to pack it up into a cpio archive. It has a lot of files, and I'd like to see just the archive's folder structure.
Now, with tar I can do something like this:
Code:tar --exclude='*/*' -tvf grub.tarAdding more of '*/' to the exclude switch allows me to control the depth of recursion.
Is there an equivalent for the cpio tool? Thank you in advance! :)


Now, with tar I can do something like this:
Code:tar --exclude='*/*' -tvf grub.tarAdding more of '*/' to the exclude switch allows me to control the depth of recursion.
Is there an equivalent for the cpio tool? Thank you in advance! :)