Created
June 11, 2015 14:27
-
-
Save hgascon/58a21373f8cc09e13403 to your computer and use it in GitHub Desktop.
Unzip all files in dir and zip in a new file
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 | |
for item in * | |
do | |
unzip $item | |
name=$(echo $item | cut -f1 -d ' ' ) | |
echo "all_files.zip" $name".foo" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment