[Solved] Convert binary, octal, decimal and hexadecimal values between each other in BASH / Shell [duplicate]

Convert binary, octal, decimal and hexadecimal values between each other in BASH with bc and printf Some relevant Q&A: Understand “ibase” and “obase” in case of conversions with bc? TL;DR: ibase and obase params order matters, but not always. Hex values must be in UPPERCASE. Convert a character from and to its decimal, binary, octal, … Read more