Linux常用命令之find

find 命令


find . -name "linxu-x86" -type d -exec bash -c 'src="{}";dst="$(dirname $src)/linux-x86"; echo ===$src==$dst==; mv $src $dst' \;



find . -name "debug_kernel_img" -type d -exec bash -c 'src="{}"; echo ===$src==;' \;



find . -name "*20160713" -type d  -exec bash -c 'src="{}"; echo ===$src==;mv $src/manifest.xml $src/manifest-bak.xml' \;


find .  -name "*.git" -type d -exec bash delbr.sh "{}" \;
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章