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. -- cloud-init cloud-config-mounts can add duplicate fstab entries https://bugs.launchpad.net/bugs/524562 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs