Bit Shifts
Explore the concept of bit shifts in Bash and learn how to perform logical, arithmetic, and circular shifts. Understand how to manipulate numbers in binary using these operations and apply Bash's bitwise operators for practical programming tasks.
We'll cover the following...
We'll cover the following...
What are bit shifts?
A bit shift changes the positions of the bits in a number.
There are three types of bit shifts:
- Logical
- Arithmetic
- Circular
The simplest shift type is the ...