|
NAMEinviz - Converts escape sequences to binary; reverses viz(1)SYNOPSISinviz [ file ... ]DESCRIPTIONInviz copies its input to its output, translating escape sequences that are found. It will properly invert the output of viz -t, thus recreating the original file. For example, typing viz < infile | inviz > copy_of_infile will create an exact copy of infile.Inviz copies from file (or from stdin, if
there is no file given) and writes to stdout. These escape
sequences are of the form \c
Backslash sequences \c and \nnn are used to produce the usual C escapes, with the addition of \@ translating to null. The complete set of `backslash' escape sequences is:
`\\' → `\' `\@' → null `\%' → percent `\b' → backspace `\f' → formfeed `\n' → newline `\r' → return `\t' → tab `\nnn' → ascii character with this octal value `\Innn...' → ascii character with this hex value Embedded newlines are discarded; to produce a newline in the output, the escape sequence `\n' must appear in the input. Lines that begin \#datatype
EXAMPLES1. To output the two integers 234 (hex) and 2345 (decimal), followed by the float value 6.4, the input text could be:
\#I 0x234 2345 \#F 6.4 2. To output a form feed followed by the integers 5 and 124, the short -16, and finally a string "456abc%" on a new line, use input like:
\f \#I 5 124 \#S -16 \n456abc% AUTHORWill DeichSEE ALSOviz(1)
Visit the GSP FreeBSD Man Page Interface. |