Shell 去重复输出

Shell 去重复输出

#!/bin/bash
cat ci.txt | awk '!arr[$0]++' >test.txt
#使用awk数组去除重复行
#cat .txt | awk '!arr[$2]++' >test.txt
#去除文件中号码重复的行
#cat c1.txt c.txt | awk '!a[$1]++'>ci.txt
#多文件组合输出重复
# Shell   Script   awk  

评论

Your browser is out-of-date!

Update your browser to view this website correctly. Update my browser now

×