I am looking for some easy way in shell script for converting hex number into sequence of 0 and 1 characters.
Example:
5F -> "01011111"
Is there any command or easy method for accomplish it or should I write some switch for it?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I used ‘bc’ command in Linux. (much more complex calculator than converting!)
ibase parameter is the input base (hexa in this case), and obase the output base (binary).
Hope it helps.