Files In Subfolders Linux ((full)) - Unzip All

find . -name '*.zip' -exec sh -c 'unzip -d ./output_folder "$1" && rm "$1"' _ {} \;

: Runs the following command from the directory containing the matched file. unzip all files in subfolders linux

Use -P (insecure, as password appears in process list) or -p to read from stdin. you can use a

find . -name "*.zip" -type f -exec unzip -P 'secret' {} -d {}.dir \; unzip all files in subfolders linux

: Optional. Specifies a destination directory so your current folders don't get cluttered. Method 2: Using a Simple Bash Loop If you prefer a script-like approach, you can use a