These two commands are used to convert data between binary format and user format (record length fields).
The ft_b2u command converts binary data into data in user format (records with record length fields). It reads the data from stdin and outputs it at stdout.
The ft_u2b command converts data in user format (records with record length fields) into binary data.
Format
ft_b2u -r=<1...32000> [-rf=1...32000>] [-rl=<1...32000>]
ft_u2b <inputfile> [<outputfile>]
Description
-r -rf -rl | Length of the records into which the byte stream is to be converted. Optional: Length of the first record. Optional: Length of the last record. |
inputfile
Name of the file in user format or ’-’ (hyphen) for stdin.
outputfile
Name of the binary file.
Default value: stdout
Example
cat file.in|ft_b2u -r=100 > file.out (Unix systems)
type file.in|ft_b2u -r=100 > file.out (Windows systems)