/ Published in: Bash
Expand |
Embed | Plain Text
find . | while read i ;do if [ -f $i ];then echo "file:${i}"; chmod 644 ${i} ; fi ; if [ -d $i ];then echo "dir:${i}" ;chmod 755 ${i} ; fi; done
You need to login to post a comment.
moonbather on 11/01/08
3 people have marked this snippet as a favorite
find . | while read i ;do if [ -f $i ];then echo "file:${i}"; chmod 644 ${i} ; fi ; if [ -d $i ];then echo "dir:${i}" ;chmod 755 ${i} ; fi; done
You need to login to post a comment.