home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Frozen Fish 1: Amiga
/
FrozenFish-Apr94.iso
/
bbs
/
alib
/
d1xx
/
d162
/
cli_utilities.lha
/
CLI_Utilities
/
StripBin
/
Stripbin.doc
< prev
Wrap
Text File
|
1988-10-02
|
1KB
|
33 lines
Stripbin--Strip binary codes.
by Fabbian G. Dufoe, III
22 July 1988
If you've ever had Ed, the AmigaDOS screen editor, refuse to edit a
file because it "contains binary" you need Stripbin. Stripbin removes the
characters Ed calls binary for you. You can have Stripbin simply
discard the binary characters (that's the default) or you can translate
them into spaces or hexadecimal notation. To select either type of
translation you simply append an option to the command line. The options
are
-h Translates binary codes to hexadecimal notation. The notation
used is that found in the C language. The letters representing
the hexadecimal digits are preceded by the characters "0x". So,
for example, a DEL character would be represented as "0x7f".
-s Translates binary codes to spaces.
Stripbin reads standard input and writes to standard output. Use the
AmigaDOS redirection operators "<" and ">" to apply Stripbin to files.
Syntax is
Stripbin <InputFile >OutputFile option
The InputFile and OutputFile must be different names. If you try to
read and write to the same file you will get a "CLI error: Unable to open
redirection file". If you forget to specify an InputFile Stripbin will read
standard input until you type "CTRL \" to signify end of file.
Stripbin was compiled with the Lattice AmigaDOS C Compiler, version
4.01.