#!/bin/bash # Untar the tar.gz files in the current directory for file in ./tars/*.tar.gz; do # Extract the tar.gz file in the current directory tar -xzvf "$file" -C ./ done