zzhang2006
asked on
Just want to learn, how Linux D2B works, under Linux bash shell
On bash Shell was was able to convert a decimal number say, 123 to binary like this:
D2B=({0..1}{0..1}{0..1}{0. .1}{0..1}{ 0..1}{0..1 }{0..1})
pi@Raspberry_~/Assembly_Co des $ echo ${D2B[123]}
01111011
Well, that;s so nice, can anyone explain to me what is D2B? Is it an built-in array or what?
Thanks
Ze
D2B=({0..1}{0..1}{0..1}{0.
pi@Raspberry_~/Assembly_Co
01111011
Well, that;s so nice, can anyone explain to me what is D2B? Is it an built-in array or what?
Thanks
Ze
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Perfect!
Thank you, Gerwin!
Ze
Thank you, Gerwin!
Ze
ASKER
Perfect, thank Gerwin!
ZE
ZE
You're welcome ;)
ASKER
Ze