home *** CD-ROM | disk | FTP | other *** search
-
-
-
- BBBBPPPPAAAATTTTCCCCHHHH((((1111)))) UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV BBBBPPPPAAAATTTTCCCCHHHH((((1111))))
-
-
-
- NNNNAAAAMMMMEEEE
- bpatch - binary patch and dump file utility
-
- SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
- bpatch [ -b blksize ] [ -d ] [ -D pagecnt ] [ -e ] [ -p ] [
- -r reclen ] [ -s ] [ -x ] file...
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- _B_p_a_t_c_h allows the viewing and/or modification of files,
- independent of file type (text, executable, data file, and
- so forth). _B_p_a_t_c_h allows the data to either be examined at
- the terminal, dumped to a print device or file, or edited in
- the general manner of _v_i(_1). The data in the file is dumped
- or displayed in _p_a_g_e_s of 256 bytes.
-
- OOOOppppttttiiiioooonnnnssss
- -b blksize The -_b option specifies the blocksize of the
- data file. This is used primarily with tapes,
- and is allowed only with one of the dump (-_d or
- -_D) options. When this option is specified, the
- file is opened in readonly mode.
-
- -d The -_d option indicates that a dump (no terminal
- manipulation) is to be performed. The entire
- file will be dumped to standard output. No
- editing of the data is allowed and the file is
- opened in readonly mode.
-
- -D pagecnt The -_D option is similar to the -_d option, with
- the following exception: the pagecnt argument
- limits the dump to the specified number of
- _p_a_g_e_s.
-
- -e The -_e option indicates that the file contains
- EBCDIC data and should be converted in the
- character portion of the dump.
-
- -p Used with one of the _d_u_m_p options, this option
- causes the program to pause between _p_a_g_e_s. The
- program will then wait for the user to press
- either the _r_e_t_u_r_n key to continue, or the _D_E_L
- (or _r_u_b_o_u_t) key to stop the dump.
-
- -r reclen The -_r option indicates the record length of the
- data within the dump. When specified, this
- option causes _b_p_a_t_c_h to place a colon (:)
- between the last byte of one record and the
- first byte of the next.
-
- -s This option turns on the byte swap option. It
- may be toggled dynamically during execution (see
- -_x under Commands below).
-
-
-
- Page 1 (printed 3/9/94)
-
-
-
-
-
-
- BBBBPPPPAAAATTTTCCCCHHHH((((1111)))) UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV BBBBPPPPAAAATTTTCCCCHHHH((((1111))))
-
-
-
- -x This option specifies the suppression of pages
- that contain only NUL characters. The result is
- that only the page header (name and page number)
- will appear for such a page. This option may
- only be used with one of the dump options.
-
- AAAArrrrgggguuuummmmeeeennnnttttssss
- file Any number of files may be specified.
-
- CCCCoooommmmmmmmaaaannnnddddssss
- All commands are valid only in the non-dump, interactive
- mode. Commands may be entered in either upper or lower
- case. Commands of the form '^x' indicate that the control
- character _x is to be entered.
-
- All commands that request movement within a file or between
- files cannot be executed if any changes have been made. To
- proceed in this case, the user must either enter the _w
- command, the _u command, or the _r command.
-
- Requesting a next or previous file when there is no such
- will cause the issuance of an error message.
-
- Note that certain commands allow/require either some text or
- numeric value. In those cases, the user should type in
- characters and end the string with either a <cr> or <DEL>.
-
- ? Display the help screen. The help screen will remain
- until the user either redraws the screen (see ^_r) or
- changes pages or files.
-
- ! Execute the following command in the shell.
-
- backslash
- Display the previous page.
-
- <cr> Display the next page.
-
- DEL Quit the program if no changes have been made.
-
- / This command initiates an ASCII search. The text
- entered on the command line will be used as a search
- string, and the file will be searched starting with
- the current page. When the string is found, the page
- containing the string will be displayed. If the
- string is not found, an apapropriate message will be
- displayed.
-
- ^f Open a named file whose name will be entered on the
- command line and followed either by <cr> or DEL.
-
- ^n Open the next file and display the first page.
-
-
-
- Page 2 (printed 3/9/94)
-
-
-
-
-
-
- BBBBPPPPAAAATTTTCCCCHHHH((((1111)))) UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV BBBBPPPPAAAATTTTCCCCHHHH((((1111))))
-
-
-
- ^p Open the previous file and display the first page.
-
- ^q Quit without writing current changes.
-
- ^r Redraw the screen.
-
- NNN Entering a numeric value requests that the specified
- page be displayed.
-
- -x Toggle the command line option represented by _x:
-
- a Toggle display to ascii (assume data is
- ascii).
-
- e Toggle display to dbcdic (assume data is
- ebcdic).
-
- s Toggle byte swap.
-
- a Edit the ASCII display. End edits by pressing the DEL
- key. All other characters will be treated as valid
- input. Cursor movement keys (arrows and home) allow
- movement within the edit window. Nonprinting
- characters are displayed as dot (.) in this window.
-
- f Display the first page in the current file.
-
- g Display the page containing the byte address typed in
- following the command.
-
- h Edit the HEXADECIMAL display. End edits by pressing
- DEL key. Cursor movement keys (arrows and home) allow
- movement within the edit window. Two keystrokes are
- required to modify a byte, and both must be valid
- hexadecimal values (0-9 and a-f). To cancel a change
- after typing one character, press DEL.
-
- l Display the last page in the current file.
-
- q Quit the file. A warning will be issued if any
- changes have been made but not written out.
-
- r Reread the current page.
-
- u Undo all changes to the current page.
-
- w Write out the current page.
-
- SSSSEEEEEEEE AAAALLLLSSSSOOOO
- od(1)
-
-
-
-
-
- Page 3 (printed 3/9/94)
-
-
-
-