Skip to content

Instantly share code, notes, and snippets.

@alordiel
Created January 16, 2020 11:31
Show Gist options
  • Save alordiel/532950df52529e63c729144173105806 to your computer and use it in GitHub Desktop.
Save alordiel/532950df52529e63c729144173105806 to your computer and use it in GitHub Desktop.
Bash script to unarchive files from folders
#!/bin/bash
FILES=$(find public_html -type f -name '*.gz')
for f in $FILES
do
gzip -d $f
# take action on each file.
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment