Consider:
echo 50 >> 4;
Output:
3
Why does it output 3?
It shifts the bits down four places.
50 in binary is 110010.
Shifted down four places is 11, which is 3.