uniq

Output the unique lines from the given input or file. Since it does not detect repeated lines unless they are adjacent, we need to sort them first. More information: <https://www.gnu.org/software/coreutils/uniq>.

Debian Debian
RUN apt-get update && \ apt-get install -y coreutils
Ubuntu
RUN apt-get update && \ apt-get install -y coreutils
Alpine
RUN apk add coreutils
Arch Arch Linux
RUN pacman -S --noconfirm coreutils
image/svg+xml Kali Linux
RUN apt-get update && \ apt-get install -y coreutils
CentOS
RUN yum install -y coreutils
Fedora
RUN dnf install -y coreutils
Raspbian
RUN apt-get update && \ apt-get install -y coreutils
click the source code to copy install uniq on any operating system with command-not-found.com