Unzip Multiple zip files and Strip directory

I receive multiple zipped directories with files in them, so the .zip name is the name of the directory containing the files.
so i have used a simple loop to unzip all of them but when unzipped i have folders/directories, i wanted to strip these directories and remain with the actual files from each directory when i run the unzip script,

can anyone assist me with that kind of a script that strips directories, i know the "tar " command has something to strip but failed to make it work on zip file

regards

:smiley:

If files are zipped up with the full path name, then it will be difficult to extract them without those path names. It's the same with tar

A quick workaround would be to extract them as you have done and then move all the files into a common directory:-

find /extract/directory -type f -exec mv {} /target/directory \;

Robin