List the contents of multiple .tar archive files List the contents of multiple .tar archive files shell shell

List the contents of multiple .tar archive files


does this help?

for f in *.tar do     echo "content of $f:"    tar tvf "$f"done


one liner as requested

find . -type f -name "*.tar" | xargs -n 1 -i bash -c "echo {}; tar tvf {}; echo" | less