5.0; cvt_rec_uasc (convert_file), revision 5.0, 82/09/27
CVT_REC_UASC (CONVERT_RECORD_UASC) -- Convert files between types.
usage: CVT_REC_UASC source_pathname [target_pathname] -OT {rec, hdru,uasc}
[-R] {CL}
FORMAT
CVT_REC_UASC source_pathname [target_pathname] -OT type [options]
CVT_REC_UASC converts files from type rec, hdru, or uasc to files of type
rec, hdru or uasc. It functions on nodes running software release 4.1
and later.
ARGUMENTS
source_pathname
(required) Specify the file to be converted.
target_pathname
(optional) Specify file to be created. An error occurs if this file
already exists (see -R below). The target_pathname may be
derived. If target is a directory, the source file is
converted and placed in that directory.
Default if omitted: the converted file becomes
'source_pathname' and the original file is renamed
'source_pathname.CBAK'.
-OT type
(required) Specify type of file to be created; choose one of the
following: "rec," "hdru," or "uasc."
Wildcards in pathnames associated with this command are permitted.
OPTIONS
-R Replace 'target_pathname' if it already exists.
CVT_REC_UASC uses the command line parser, and so also accepts the standard
command options listed in HELP CL.
EXAMPLES
1. $ ld -a List current files in specified directory and their types.
Directory "/larry/cvt_rec_uasc_axamples":
sys type blocks current
type uid used length attr rights name
file rec 1 42 P pndwrx a
file rec 1 42 P pndwrx b
file rec 1 44 P pndwrx c
3 entries, 3 blocks used.
2. $ cvt_rec_uasc ?* -ot uasc -nq Convert all files to type uasc;
$ ld -a suppress wildcard queries.
Directory "/larry/cvt_rec_uasc_axamples":
sys type blocks current
type uid used length attr rights name
file uasc 1 37 P pndwrx a
file rec 1 42 P pndwrx a.cbak
file uasc 1 38 P pndwrx b
file rec 1 42 P pndwrx b.cbak
file uasc 1 40 P pndwrx c
file rec 1 44 P pndwrx c.cbak
6 entries, 6 blocks used.
3. $ cvt_rec_uasc [a-c] =.x -ot rec -nq Convert files named "a," "b,"
$ ld -a and "c" to type rec and write
them to "a.x," "b.x," and "c.x."
Directory "/larry/cvt_rec_uasc_axamples":
sys type blocks current
type uid used length attr rights name
file uasc 1 37 P pndwrx a
file rec 1 42 P pndwrx a.cbak
file rec 1 42 P pndwrx a.x
file uasc 1 38 P pndwrx b
file rec 1 42 P pndwrx b.cbak
file rec 1 42 P pndwrx b.x
file uasc 1 40 P pndwrx c
file rec 1 44 P pndwrx c.cbak
file rec 1 44 P pndwrx c.x
9 entries, 9 blocks used.
$