MPE/iX Shell and Utilities Reference Manual, Vol 2

tobyte(1) MPE/iX Shell and Utilities tobyte(1)
NAME
tobyte — convert MPE record files to byte stream files
SYNOPSIS
tobyte –at mpe_file [hfs_filename]
DESCRIPTION
The tobyte utility reads the file specified as mpe_file and writes it to the file specified as
hfs_filename in byte stream form. mpe_file must be either an
MPE file.group.acct style name or
an HFS (Hierarchical File System) name with a leading slash (that is, /name) or dot-slash
(that is ./name) hfs_filename must be an HFS name. If hfs_filename is omitted, the standard
output is used. If no options are specified, tobyte treats mpe_file as a binary file.
Options
–a opens mpe_file as an ASCII file.
–t strips trailing blanks from each line in an
ASCII file. You can only use this option
when you have also specified the –a option.
EXAMPLES
To copy an MPE/iX
text file to a byte stream file in the HFS, use the following command:
tobyte -at zork.c.sys /usr/src/zork.c
To perform the same task using
HFS names for both files, use:
tobyte -at /SYS/C/ZORK /usr/src/zork.c
To copy an executable program file to standard output and pipe it into the strings utility:
tobyte LS.HPBIN.SYS | strings
DIAGNOSTICS
Possible exit status values are:
0 Successful completion.
1 An error occurred.
Messages
Message: opening output file "filename":system error
Cause: See syserror(3).
Action: See syserror(3).
Commands and Utilities 1-603