CRPAD(1) Domain/OS SysV CRPAD(1)
NAME
crpad - create a transcript pad and window
SYNOPSIS
crpad [options] [pathname]
DESCRIPTION
crpad creates a transcript pad, copies a file (or standard input) into
that pad, and then opens a window into the pad. This new pad is not
related to the transcript pad attached to processes running the shell; it
is for viewing file contents only. This is primarily useful for
displaying output being produced inside a pipeline without interrupting
the flow of control in the pipe.
You cannot edit transcript pads. If you wish to place a file in a pad
for editing, use the EDIT key or the DM command ce.
crpad -input behaves differently. This creates an edit pad and lets you
create whatever text you want. When you close the edit pad (with wc or
the EXIT key), that text is copied to standard output.
pathname (optional)
Specify the file to be copied into the pad. Not valid if
-input is used.
Default if omitted: copy standard input
OPTIONS
-i[nput] Copies data from a temporary edit window to standard
output. Not valid if -tee or -pn are specified.
-p[n] pathname Specify a pathname for the pad. If you specify a pathname,
the pad is saved in that file. Note that you can also
save the pad after it is created by using the DM command
pn (pad_name).
-t[ee] Copy output to standard output in addition to the new pad.
EXAMPLES
Create a pad that displays the file test.data.
$ crpad test.data
Display the intermediate results in a pipeline.
$ $grep 256- phone.book | crpad -tee | sort >phone.book.local
Create an edit pad. When the pad is closed, sort the text edited and
display it in a transcript pad.
$ crpad -input | sort | crpad