Command: trch

  TRCH converts all instances of one character to another. This is really
  useful if you need to convert a text file between UNIX (end of line
  is "^J") and DOS (end of line is "^M^J" or "\n").

Syntax:

  trch c1 c2 < file > file
       < file = input file
       > file = output file

[Main menu] [top] (Syntax) [Options] [Comments] [Examples] [See also] [File]

Options:

  c1  character1, e.g. 'A'
  c2  character2, e.g. 'B'

[Main menu] [top] [Syntax] (Options) [Comments] [Examples] [See also] [File]

Comments:

   TRCH supports NLS (national language support).

[Main menu] [top] [Syntax] [Options] (Comments) [Examples] [See also] [File]

Examples:

  trch ^I * < test.txt >test2.txt    Replaces tabs with '*'
  trch e X < test.txt > test3.txt    Replaces 'e' with 'X'
  trch \n $ < test.txt > test4.txt   Replaces end of line ('\n') with '$*'
  trch ^J ^M^J < unix.txt > dos.txt  Replaces Unix to DOS format
  trch \n ^J < dos.txt > unix.txt    Replaces DOS to Unix format

[Main menu] [top] [Syntax] [Options] [Comments] (Examples) [See also] [File]

See also:

  - nowhere -

[Main menu] [top] [Syntax] [Options] [Comments] [Examples] (See also) [File]

File:

  Please read this command's lsm file also.
  You will find the updated version (internet) here and
  the version described in this manual page here.
  The lsm file contains information about the name of the programmer,
  the download site, and some other command related information.

[Main menu] [top] [Syntax] [Options] [Comments] [Examples] [See also] (File)


  Copyright © 2008 W. Spiegl.

  This file is derived from the FreeDOS Spec Command HOWTO.
  See the file H2Cpying for copying conditions.