DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH
 

translate(C)


translate -- translate files from one format to another

Syntax

translate option [ infile ] [ outfile ]

Description

The translate command translates files according to the options specified.

translate uses standard input and standard output unless otherwise specified 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.

Examples

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 conversion options, refer to dd(C).

Files

/usr/lib/translate/*

See also

dd(C), mapchan(M), trchan(M), uudecode(C), uuencode(C)

Standards conformance

translate is not part of any currently supported standard; it is an extension of AT&T System V provided by The Santa Cruz Operation, Inc.
© 2003 Caldera International, Inc. All rights reserved.
SCO OpenServer Release 5.0.7 -- 11 February 2003