Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

10.0;cvt_rec_uasc (convert_record_uasc), revision 1.0, 88/01/21
cvt_rec_uasc (convert_record_uasc) -- Convert file types.
usage:  cvt_rec_uasc source_pathname [target_pathname] -ot {rec, hdru,uasc}
                                [-r]     {cl}



DESCRIPTION
     cvt_rec_uasc converts files from type "rec", "hdru", or "uasc" to files
     of type "rec", "hdru", or "uasc".

     Wildcards in pathnames associated with this command are permitted.


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 renamed source_pathname.cbak

     -ot type (required)
               Specify type of file to be created target_pathname. Choose one
               of the following for type: "rec", "hdru", or "uasc."

               Wildcards in pathnames associated with this command are
               permitted.

OPTIONS
     -r        Replace target_pathname if it already exists.

EXAMPLES
     List current files in specified directory and their types.

     $ ld -a

        Directory "/larry/cvt_rec_uasc_examples":

        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.
     $


     Convert all files to type uasc; suppress wildcard queries.

     $ cvt_rec_uasc ?* -ot uasc -nq
     $ ld -a

        Directory "/larry/cvt_rec_uasc_examples":

        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.
     $


     Convert files named a, b, and c to type rec and write them to a.x, b.x1
     and c.x.

     $ cvt_rec_uasc [a-c] =.x -ot rec -nq
     $ ld -a

        Directory "/larry/cvt_rec_uasc_examples":

        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.
     $

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026