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