Unzip a bunch of zips into their own directories

for x in *.zip; do unzip -d "$(basename "$x" .zip)" "$x"; done


no need to use external basename

for file in *zip
do
 unzip -d "${file%.zip}" "$file"
done