转载自:http://www.cnblogs.com/giraffe/p/3193085.html第一:两个文件的交集,并集前提条件:每个文件中不得有重复行1. 取出两个文件的并集(重复的行只保留一份)2. 取出两个文件的交集(只留下同时存在于两个文件中的文件)3. 删除交集,留下其他的行1.cat file1 file2 | sort | uniq > file32. cat file1 file2 | sort | uniq -d > file33. cat file1 file2 | sort | uniq -u > file3第二:两个文件合并一个文件在上,一个文件在 Read More
posted @ 2014-02-26 14:29 奋斗中的毛毛虫 Views(350) Comments(0) Diggs(0) Edit