You are viewing a single comment's thread. Return to all comments →
Simple solution:
#!/bin/bash read N read -a arr declare -A countElements for item in "${arr[@]}"; do ((countElements["$item"]++)) done for key in "${!countElements[@]}"; do if ((countElements["$key"] == 1)); then echo "$key" fi done
Seems like cookies are disabled on this browser, please enable them to open this website
Lonely Integer - Bash!
You are viewing a single comment's thread. Return to all comments →
Simple solution: