http://blog.csdn.net/hardwin/article/details/7711635
把当前目录下面的file(不包括目录),移动到/opt/shell
find . -type f -exec mv {} /opt/shell \;
find . -type f | xargs -I '{}' mv {} /opt/shell
本文介绍了如何利用Linux下的find命令结合xargs或者-exec参数来查找并移动指定目录下的所有普通文件(不包括子目录)。这在进行系统维护或者文件整理时非常有用。
http://blog.csdn.net/hardwin/article/details/7711635
把当前目录下面的file(不包括目录),移动到/opt/shell
find . -type f -exec mv {} /opt/shell \;
find . -type f | xargs -I '{}' mv {} /opt/shell
6917
1224
2587

被折叠的 条评论
为什么被折叠?
