|
|
1.1 ! root 1: echo removing duplicate entries 1>&2 ! 2: awk ' ! 3: # ! 4: # get rid of duplicate entries per line ! 5: # ! 6: { ! 7: for(i=1; i<=NF; i++) ! 8: unique[$i] = "x" ! 9: line = $1 ! 10: delete unique[$1] ! 11: for(i=2; i<=NF; i++) ! 12: if($i in unique) { ! 13: line = line " " $i ! 14: delete unique[$i] ! 15: } ! 16: print line ! 17: } ! 18: '
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.