Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ translate(C) — OpenDesktop 3.0.0

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

dd(C)

mapchan(M)

sysadmsh(ADM)

uuencode(C)


 translate(C)                    19 June 1992                    translate(C)


 Name

    translate - translate files from one format to another

 Syntax

    translate option [ infile ] [ outfile ]

 Description

    The translate command translates files according to the options speci-
    fied.

    translate uses standard input and standard output unless otherwise speci-
    fied via the optional filename arguments, infile and outfile.

 Options


    -ea         From EBCDIC to ASCII.

    -ae         From ASCII to EBCDIC.

    -fe format  From a user defined format to EBCDIC format.

    -fa format  From a user defined format to ASCII format.

    -ef format  From EBCDIC format to a user defined format.

    -af format  From ASCII format to a user defined format.

    -bm         From binary/object code to mailable ASCII uuencode format.

    -mb         From mailable ASCII uuencode format to original binary.

    format is assumed to be a file in the directory /usr/lib/translate if a
    full pathname is not provided.

 Files

    /usr/lib/translate/*

 See also

    dd(C), mapchan(M), sysadmsh(ADM), uuencode(C)

 Notes

    The -bm and -mb options are, for example, used to translate executable
    object code format to ASCII for transfer across communications networks.

    The syntax for the user defined format file is the same as the syntax for
    the mapping files for mapchan(M) and trchan.

    Use dd to convert character and file formats (especially tapes) to the
    format specified.  For example:


       dd if=/dev/rmt0 of=outfile ibs=800 cbs=80 conv=ascii,lcase


    This command reads an EBCDIC tape, blocked ten 80-byte EBCDIC card images
    per record, into the ASCII file outfile.  For more information on conver-
    sion options, refer to dd(C) in the User's Reference.

 Value added

    translate is an extension of AT&T System V provided by The Santa Cruz
    Operation, Inc.


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