BSD Ports

converters/ascii2binary 2.14_2 DragonFly

Convert between textual representations of numbers and binary

System
DragonFly
Repository
DPorts
Maintainer
[email protected] (as in FreeBSD)
License
GPLv3
Categories
converters
Package size
26.9 KiB, 77.6 KiB installed

Description

These programs convert between textual and binary representations of numbers. ascii2binary reads input consisting of textual representations of numbers separated by whitespace and produces as output the binary equivalents. The type and precision of the binary output is selected using command line flags.

binary2ascii reads input consisting of binary numbers and converts them to their textual representation. Command line flags specify the type and size of the binary numbers and provide control over the format of the output. 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 decimal, either in standard or scientific notation. (If you want to examine the binary representation of floating point numbers, just treat the input as a sequence of unsigned characters.)

The two programs are useful for generating test data, for inspecting binary files, and for interfacing programs that generate textual output to programs that require binary input and conversely. They can also be useful when it is desired to reformat numbers.

In the other systems

SystemPortVersion
DragonFlyconverters/ascii2binary2.14_2
FreeBSDconverters/ascii2binary2.14_2
NetBSDwip/ascii2binary2.14
HardenedBSDconverters/ascii2binary2.14_2
GhostBSDconverters/ascii2binary2.14_2

Install

Binary package:

pkg install ascii2binary

From DPorts:

cd /usr/dports/converters/ascii2binary && make install clean

Dependencies

Run dependencies 1
Required by 1

Configuration

No options to configure.

Service scripts
none

Message after installing

===>   NOTICE:

The ascii2binary port currently does not have a maintainer. As a result, it is
more likely to have unresolved issues, not be up-to-date, or even be removed in
the future. To volunteer to maintain this port, please create an issue at:

https://bugs.freebsd.org/bugzilla

More information about port maintainership is available at:

https://docs.freebsd.org/en/articles/contributing/#ports-contributing