Linux / UNIX: bc Convert Octal To Hexadecimal or Vise Versa
You can use the bc command-line calculator tool to convert between octal and hexadecimal number systems in Linux or UNIX systems. Here’s how: Convert Octal to Hexadecimal: $ echo “ibase=8;obase=16; <octal_number>” | bc Where <octal_number> is the octal number you want to convert. Convert Hexadecimal to Octal: $ echo “ibase=16;obase=8; <hexadecimal_number>” | bc Where <hexadecimal_number> … Read more