A nice user solved my problem, so I changed my question, now its not the same as before the other one was. My permutation look like this now:
x=3
for i in $(eval echo "{1..$x}{1..$x}{1..$x}"); do
echo "$i"
done
How can I get just these numbers (123,132,231,213,321,312) from the output with two "for" periods and with "seq" command?