Created
February 17, 2014 10:34
-
-
Save dhoko/9048292 to your computer and use it in GitHub Desktop.
Compress each files inside a directory
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
for directory in $(ls) | |
do | |
echo Move to $directory; | |
cd $directory && zip $directory * && cd .. && mv $directory/$directory.zip . || echo Erro meine cheneral; | |
done; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Ex :
===>