• + 0 comments

    read n

    mapfile -t arr

    arr=({arr[@]}" | tr ' ' '\n' | sort -n | uniq -u))

    echo "${arr[@]}"