存档在 ‘探索中的鹏鹏工作室’ 分类

怎样将find命令与cp命令结合使用

2009年11月26日

怎样将find命令与cp命令结合使用,通过这样筛选文件非常实用。

命令模式 :   find . -name ‘pattern‘ -exec cp “{}” dest-dir \;

例如:
find . -newer file1 -exec cp {} /path/to/target/dir/ \;
这是比file1新的文档都复制

鹏鹏工作室问题提交

2009年4月7日

鹏鹏工作室  ScanMon

各位朋友亲将你们的问题提交到这里,我们会及时给您反馈

———————————————————————————–