#!/bin/bashfor file in *.txt;do echo $filedonefor file in *.txt;do cat $file >>all.txt done
合并数据
原文:http://www.cnblogs.com/soyo/p/7349850.html