using tar --list --file=x
will list all files and folders.
I am just looking to list the top level files and folders
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?
update: looking for something that works on most nix flavors including MacOS.