Unzip all “.zip” files in the current folder:
# For each file and folder in the directory
for d in * ; do
# If the file ends in ".zip"
if [ ${d: -4} == ".zip" ]; then
# -o Overwrite: allow the function to overwrite existing files and folders
unzip -o "$d"
fi
done