List the contents of the files.tar
tar archive by filetype.
You can use this short tar command.
tar -tvf files.tar --include '*.svg'
Or this more verbose tar command.
tar --list --verbose --file files.tar --include '*.svg'
The commands above will list only the *.svg
files in the files.tar
tar archive.
-t
or --list
tells tar to extract an existing archivev
or --verbose
tells tar to produce verbose outputf
or --file
tells tar that the next parameter will be the tar file to create, extract, append to, list, etc.include
tells tar to process files or directories that match the specified pattern