arithmetic-operator
Bash ^ arithmetic operator
Performs bitwise exclusive OR; not exponentiation.
Formal Syntax & Structure
bash syntaxbash
$(( 6 ^ 3 ))Return Value
integer
Performs bitwise exclusive OR; not exponentiation.
Working Example
Example Snippetbash
printf '%s\n' "$(( 6 ^ 3 ))"