/ Published in: Bash
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
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