将一个文件复制到文件夹的所有子文件夹:
find <parent directory> -type d -exec cp <parent directory>/<Filename1> {}/ \;
以php.ini为例:
find . -type d -exec cp php.ini {}/ \;
-----
移除目录结构下的一个子目录,以.svn为例:
find . -name .svn -exec rm -rf \{\} \;
Powered By PJBlog2 v2.8.5.157 CopyRight 2006 - 2010, [巭]大野人@深山 xhtml | css
Processed in 0.171875 second(s) , 6 queries , Nuvola Style For PJBlog2 Design By PuterJam | 闽ICP备05011147号