Linux常用命令之find

版权声明:本文为博主原创文章,未经博主允许不得转载。 马哥私房菜的github地址 https://github.com/mageSFC/myblog https://blog.csdn.net/mmh19891113/article/details/81627393

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 "{}" \;

猜你喜欢

转载自blog.csdn.net/mmh19891113/article/details/81627393