Article 52Q6V cpio - How to list files in archive without recursing into directories?

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! :)latest?d=yIl2AUoC8zA latest?i=0xPHrtKelmY:FnYPjQUBdoU:F7zBnMy latest?i=0xPHrtKelmY:FnYPjQUBdoU:V_sGLiP latest?d=qj6IDK7rITs latest?i=0xPHrtKelmY:FnYPjQUBdoU:gIN9vFw0xPHrtKelmY
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments