怎样将find命令与cp命令结合使用,通过这样筛选文件非常实用。
命令模式 : find . -name ‘pattern‘ -exec cp “{}” dest-dir \;
例如:
find . -newer file1 -exec cp {} /path/to/target/dir/ \;
这是比file1新的文档都复制
怎样将find命令与cp命令结合使用,通过这样筛选文件非常实用。
命令模式 : find . -name ‘pattern‘ -exec cp “{}” dest-dir \;
例如:
find . -newer file1 -exec cp {} /path/to/target/dir/ \;
这是比file1新的文档都复制
鹏鹏工作室 ScanMon
各位朋友亲将你们的问题提交到这里,我们会及时给您反馈
———————————————————————————–