You're replying to a comment by dj.

December 07, 2013, 19:30

Bash Solution to union:

#
# Usage: ./union.sh set1 set2
#
declare -Ai union

while read -re element; do
((union["${element}"]++))
done < <(cat "${@}")

declare -p union

Reply To This Comment

(why do I need your e-mail?)

(Your twitter name, if you have one. (I'm @pkrumins, btw.))

Type the word "sandbox": (just to make sure you're a human)

Please preview the comment before submitting to make sure it's OK.