I would like to have a script that finds all the zip files throughout a directory tree, and unzips them into directories named after the zip files, from the relative path.
I know:
find . -name "*zip" -exec dirname {} \;
will give me the directories where the zip files reside
find . -name "*zip" -exec unzip {} \;
will unzip all files to the directory I issued the command from
but how do I
find . -name "*zip" -exec unzip {} -d "relative path/filename-as-directory"
Thanks,
Jeff
I know:
find . -name "*zip" -exec dirname {} \;
will give me the directories where the zip files reside
find . -name "*zip" -exec unzip {} \;
will unzip all files to the directory I issued the command from
but how do I
find . -name "*zip" -exec unzip {} -d "relative path/filename-as-directory"
Thanks,
Jeff