下面命令需要注意通配符加扩展名要用引号括起来,另外后面的{}表示前面某个文件的替换。
root@laojiang:~/install_test/sql_laojiang_mysql> find . -name "*.sh" -exec chmod +x {} \;
root@laojiang:~/install_test/sql_laojiang_mysql> find . -name "*.sh" -exec chmod +x {} \;
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/29911917/viewspace-1278946/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/29911917/viewspace-1278946/