I understand that
tar --list --file=x
will list all files and folders.
I am looking to just list the-top level data.
Does anyone know how to do that?
Alternatively, does anyone know how to list only the top-level files, but all folders including subfolders? Maybe with grep somehow?
I'm after something that works on most nix flavors including MacOS.
Asked by Alexander Mills
(10744 rep)
Dec 22, 2018, 03:16 AM
Last activity: Aug 2, 2025, 06:02 PM
Last activity: Aug 2, 2025, 06:02 PM