arithmetic-operator
Bash >> arithmetic operator
Shifts bits right; example uses a small nonnegative integer.
Formal Syntax & Structure
bash syntaxbash
$(( 12 >> 2 ))Return Value
integer
Shifts bits right; example uses a small nonnegative integer.
Working Example
Example Snippetbash
printf '%s\n' "$(( 12 >> 2 ))"