binary2ascii(1)
π binary2ascii(1) β General Commands Manual π
okay bestie, buckle up, because this little icon converts binary numbers into text and honestly? she ate. π
β¨ NAME β¨
binary2ascii β Convert binary numbers to textual representation
π¦ SYNOPSIS π¦
binary2ascii [flags]
πΈ DESCRIPTION πΈ
so the way this works, binary2ascii reads input that's made of binary numbers and turns them into their textual representation. that's the whole main character moment. π
the command line flags are the ones calling the shots here β they say what type and size the binary numbers are, and they control how the output gets formatted. no cap.
- Unsigned integers may be written out in binary, octal, decimal, or hexadecimal.
- Signed integers may be written out only in binary or decimal.
- Floating point numbers may be written out only in decimal, either in standard or scientific notation.
π«Ά psst β if you wanna peek at the binary representation of floating point numbers, just treat the input as a sequence of unsigned characters. iykyk.
β¨ COMMAND LINE FLAGS β¨
π heads up: Long options may not be available on some systems.
-b,--base<base> β base for integer conversions, and your options areb(binary),d(ecimal),h(exadecimal),o(ctal), or2,8,10, or16. pick your fighter π-d,--delimitβ delimit the output as per the locale. this one is the default on systems whereprintf(3)supports delimitation. if delimitation is not enabled, floating point numbers will have a decimal point and no separation of groups, and integers get no delimiters at all. with this option on, the decimal separator gets chosen according to the locale (which, for example, may make it a comma), and non-fractional digits get grouped and separated according to the rules for the locale in force. for American English that means groups of three digits separated by commas, whereas for German in Germany it means groups of three digits separated by periods. iconic behavior honestly π-D,--do-not-delimitβ do not delimit the output as per the-doption.-e,--exponentialβ use exponential (scientific) notation. very sci-fi of her β¨-h,--helpβ print help message-l,--linefeedβ add a linefeed after every0x0Avalue if the size ischar,short,int, orlongβ that is, the sizes that might represent a character.-L,locale<locale> β set theLC_NUMERICfacet of the locale to <locale>.-n,--number<number> β number of items to print per line.-o,--offset<offset> β byte offset at which to start.-p,--precision<precision> β the precision to use when printing floating point numbers.-s,--sizesβ print sizes of types on current machine and related information-t,--type<type> β set type and size of input-x,--no-hex-markβ do not mark hexadecimal output with the prefix0x.-V,--verboseβ be verbose. spill the tea π-v,--versionβ print version information.-w,--widthβ minimum field width.-X,--explain-exit-codesβ print a summary of the exit status codes.-z,--zero-pad-integersβ zero pad on left.-Z,--do-not-zero-pad-integersβ do not zero pad on left
π§ INPUT TYPES π§
these are the possible input types, bestie. note that some types may not be available on some machines π
dβ doublefβ floatqβ long doublescβ signed charssβ signed shortsiβ signed intslβ signed longsqβ signed long longucβ unsigned charusβ unsigned shortuiβ unsigned intulβ unsigned longuqβ unsigned long long
π EXIT STATUS π
the following values are returned on exit:
0SUCCESS β the input was successfully converted. slay π1INFO β the user requested information such as the version number or usage synopsis and this has been provided.2SYSTEM ERROR β an error resulted from a failure of the operating system such as an i/o error or inability to allocate storage. π3COMMAND LINE ERROR β the program was called with invalid or inconsistent command line flags.5INPUT ERROR β this means that the input was ill-formed, that is that it could not be interpreted as a number of the required type. for example, if the input is0x2Aand a decimal value is called for, an INPUT ERROR will be returned since0x2Ais not a valid representation of a decimal integer. π
π also, like, if you want the whole rundown printed for you,-X,--explain-exit-codesdoes exactly that. main character energy.
π AUTHOR π
Bill Poser (billposer@alum.mit.edu)
β LICENSE β
GNU General Public License, version 3
π SEE ALSO π
ascii2binary(1) β the reverse queen, go say hi π«Ά
and that's the whole page bestie!! this manual dropped way back in July, 2010, part of General Commands Manual for binary2ascii(1) β she's been serving binary-to-text realness for literal decades and she's still that girl. periodt. π
β¨π
π¦ where this page comes from
- debian bookworm: ascii2binary 2.14-1.1+b1
- debian trixie: ascii2binary 2.14-1.1+b1
- ubuntu jammy: ascii2binary 2.14-1build1
- ubuntu noble: ascii2binary 2.14-1.1
- ubuntu resolute: ascii2binary 2.14-1.1build1
- ubuntu stonking: ascii2binary 2.14-2 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms