#!/bin/bash for dir in long_horizon_manipulation_dataset/* do if [[ -d $dir ]]; then for EPISODE in {0..9} do unzip "$dir""/""$EPISODE"".zip" -d "long_horizon_manipulation_dataset" && rm "$dir""/""$EPISODE"".zip" done fi done