echo 'obase=2;1234' | bc
bc is an arbitrary precision calculator language.obase defines the conversion base for output numbers, in this example 2 (binary); is a statement separator in bc1234 is the decimal number to convertbc we get 1234 in binary formatbc <<< 'obase=2;1234'