Created
April 23, 2015 05:46
-
-
Save ariesmcrae/9ab406347808fb17c272 to your computer and use it in GitHub Desktop.
Change file permission to all directories
This file contains hidden or 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 dir in /opt/aaa/bbb/ccc/*/ | |
do | |
dir=${dir%*/} | |
echo $dir | |
cd $dir | |
chmod 775 * | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment