Guest User

Untitled

a guest
Jan 18th, 2019
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. echo "ibase=16; obase=2; $line" | BC_LINE_LENGTH=9999 bc
  2.  
  3. awk '{ len = (8 - length % 8) % 8; printf "%.*s%sn", len, "00000000", $0}'
  4.  
  5. line=4F
  6. python -c "print ''.join([bin(int(i, 16))[2:].zfill(4) for i in '$line'])"
  7.  
  8. '01001111'
  9.  
  10. echo "ibase=16; obase=2; $line" | BC_LINE_LENGTH=9999 bc | awk '{ printf "%08dn", $0 }'
Add Comment
Please, Sign In to add comment