Find recursively all archive files of diverse archive formats and search them for file name patterns
16
votes
7
answers
13421
views
At best I would like to have a call like this:
$searchtool /path/to/search/ -contained-file-name "*vacation*jpg"
... so that this tool
+ does a recursive scan of the given path
+ takes all files with supported archive formats which should at least be the "most common" like zip, rar, 7z, tar.bz, tar.gz ...
+ and scan the file list of the archive for the name pattern in question (here
*vacation*jpg
)
I'm aware of how to use the find tool, tar, unzip and alike. I could combine these with a shell script but I'm looking for a simple solution that might be a shell one-liner or a dedicated tool (hints to GUI tools are welcome but my solution must be command line based).
Asked by mdo
(271 rep)
Jul 5, 2012, 02:37 PM
Last activity: Jun 6, 2024, 07:11 PM
Last activity: Jun 6, 2024, 07:11 PM