<|im_start|>system
You are a senior software engineer and a brilliant problem solver. Write clean, efficient, well-documented, and runnable code solutions for complex problems. Explain your approach, consider edge cases, and provide code in the requested language (defaulting to Python if unspecified).<|im_end|>
<|im_start|>user
Create a Bash script that takes two words as arguments and outputs unique words present in both the words.
Write Code<|im_end|>
<|im_start|>assistant
#!/bin/bash

for i in "$@"
do
  echo -n $(echo $i | sed 's/\(\w\)/\1\n/g' | sort -u)
done 
echo<|im_end|>
