Shell 取兩個文件的交集和並集
cat 1.txt 2.txt | sort -n | uniq -d 交集
cat 1.txt 2.txt 2.txt | sort -n | uniq -u 差集 去除1.txt里2.txt里包含的內容
1.txt和2.txt都已排重。
原文:
http://zhan.renren.com/linuxsir?gid=3602888498031319239&from=post&checked=true
Shell 取兩個文件的交集和並集
cat 1.txt 2.txt | sort -n | uniq -d 交集
cat 1.txt 2.txt 2.txt | sort -n | uniq -u 差集 去除1.txt里2.txt里包含的內容
1.txt和2.txt都已排重。
原文:
http://zhan.renren.com/linuxsir?gid=3602888498031319239&from=post&checked=true
本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。