“Find和mv的结合使用:查找文件,移动到某个目录”的版本间的差异

来自linux中国网wiki
跳到导航 跳到搜索
docker>Evan
(导入1个版本)
 
(导入1个版本)
 
(没有差异)

2019年10月14日 (一) 13:48的最新版本

把当前目录下面的file(不包括目录),移动到/opt/shell

find  .  -type f  -exec mv {}   /opt/shell   \;
find .  -type f  |  xargs  -I  '{}'  mv  {}  /opt/shell

30天的的文件 mv走 
find ./ -type f -mtime +29 -exec mv {}   /data1/bak   

 

 

http://blog.csdn.net/hardwin/article/details/7711635