Comment 3 for bug 524562

Revision history for this message
Eric Hammond (esh) wrote :

I don't think that "uniq -u" does what is needed here.This might be closer to what you're looking for:

  perl -ni -e 'print if !$seen{$_}++' /etc/fstab

but that would also remove repeated comment lines which may be desired in some cases. Best to just not add duplicates in the first place.