0
i have a list of zip files, which each zip file in it has also some other zip files, and so on. I need to extract them all, with an ubuntu shell command, and get only the files with the extension *.pdf, into a new empty directory.
This is where i managed to come, i have tried unzip -l "*.zip"
but how do i only keep files with the extension .pdf? – vipoxou – 2018-10-12T11:10:23.007
1The above extracts all files. To extract only zip and pdf replace the command
-exec unzip -- '{}'
by the two commands-exec unzip -- '{}' "*.zip" \; -exec unzip -- '{}' "*.pdf
.` – harrymc – 2018-10-12T13:52:55.103