To list the content of one .tar
archive file I use
tar -tvf archive.tar
and I was hoping to use similar format to list the contents from more files, but
tar -tvf *.tar
is not working as I expected.
What is the best one line solution to list the contents of multiple .tar
archive files?
does this help?
for f in *.tar
do
echo "content of $f:"
tar tvf "$f"
done
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With