mtc(7)

NAME
mtc - Multifile Text encoding Converter

SYNOPSIS
mtc --from <fromcp> --to <tocp> [--silent] [filemask1] [ffilemask2] ... mtc -f <fromcp> -t <tocp> [-s] [filemask1] [ffilemask2] ...

DESCRIPTION
The mtc - Multifile Text encoding Converter. Converter from anything to anything :)
Converted file is output to the input file. (logically and correct of course) Input is taken from a file 'file'. Wildcards are allowed it can be used to CAPITALIZE all letter in the file or make them lowercase or do something else. However, it cannot be used to do any action which changes the filelength. (such as cutting out certain chars from a file) CR/LF's do not count in from/to tables. They are just striped. This way we can avoid problems with different files and OSes which add 0x0A or 0x0D+0x0A or nothing at all at the end of a line.

FILES
/usr/local/bin/mtc
/usr/local/etc/win1251
/usr/local/etc/koi8
/usr/local/etc/dos866
/usr/local/bin/wee

EXAMPLES
mtc --from koi8 --to win1251 handbook.txt faq.txt ./etc
mtc --from win1251 --to koi8 *.html *.htm
mtc -f koi8 -t dos866 printdoc.txt
cat printdoc | mtc -f koi8 -t dos866 -s | lpr -Rsmb

COMPATIBILITY
This program is compatible with all UNIX systems where Perl, ls, pwd are present.

SEE ALSO
pwd(1), ls(1), ee(1)

HISTORY
2001/11/07 1.3 Added Alexander Trapeznikov Added recursive directory processing. To work with directories mtc requires two programs: pwd - program to determine current directory ls -R - create recursive list of files 2000/04/18 1.2 Fixed a bug in dos866 codepage file. By default it searches for codepage files in /usr/local/etc, if $sysdir is not set here. A simple install utility. Fixed a bug which didn't allow mtc to work as pipe. All info messages now go to STDERR. Switched to normal unix like command line arguments. 2000/04/17 1.1 Now it does not process non-plain files and also restores file mode and uid/gid 1998/02/18 1.0 First release based on tc

AUTHORS
Artem Koutchine <matrix@ipform.ru>,
Alexander Trapeznikov <infoteacher@ipform.ru>