Finding duplicate lines with sed

Something simple and useful. Finding the duplicate lines in UNIX is done with the following series of commands:

sort [file] | uniq -c | awk '$1 !~/1/'

0 Responses to “Finding duplicate lines with sed”


  • No Comments

Leave a Reply