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.tar
Adding 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!