合并查找到的文件,至新的文件中

文章发自:http://www.cnblogs.com/hark0623/p/4196355.html  转发请注明

 

脚本如下

find /opt/data/sensor -name "*.maclog" -exec 'cat' {} \; > /opt/data/sensor/1.txt

 

posted @ 2014-12-31 18:11  HarkLee  阅读(245)  评论(0编辑  收藏  举报