Last Updated: May 03, 2024
·
102
· minhtuannguyen

Using Echo to convert number in different number systems

Introduction

One can use Echo to to convert number in different number systems:
$ echo "$((NumberSystem#Number))"

Example

$ echo "$((2#010101010110))"
$ echo "$((8#756213))"