awk实现去重输出

alias myuniq="awk 'BEGIN{a[\"\"]=1}{if(!(\$0 in a)){print \$0;a[\$0]=1}}'"
awk 'BEGIN{a[""]=1}{if(!($0 in a)){print $0;a[$0]=1}}'
posted @ 2022-04-07 21:21  douzujun  阅读(76)  评论(0编辑  收藏  举报