cat a.txt |sed -E "s/ /\n/g" | sort | uniq