Created
January 16, 2020 11:31
-
-
Save alordiel/532950df52529e63c729144173105806 to your computer and use it in GitHub Desktop.
Bash script to unarchive files from folders
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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