# 2unix(3f)

[Home] [Commands] [Variables] [Macro-Dev] [Glossary]

## NAME

2unix - Convert text files to UNIX format files

## SYNOPSIS

me "@2dos" <files>
me "@2mac" <files>
me "@2unix" <files>
me "@2win" <files>

## DESCRIPTION

The start-up file `2unix.emf` may be invoked from the command line as a filter to convert all text files, which may be in MS-DOS, Windows, Macintosh format into UNIX text format.

Each file specified on the command line is interrogated and the line ending modified to UNIX.

`2dos`, `2win` and `2mac` similarly operate to provide conversion from any of these formats to MS-DOS, Macintosh or Windows file formats.

## EXAMPLE

When using ME as a command line filter it is advisable to control the backup command line options. Typically the backups and auto-save are disabled so that no backup files are generated i.e.

    me -a -B "@2dos" files...

Performs a conversion from UNIX to MS-DOS and disables the generation of auto-save files and backups.

NE may be used to run the filters, by default NE runs without backup and auto-save mode enabled and the flags should NOT be used.

    ne "@2dos" files...

## NOTES

`MS-DOS` files are defined to use a line ending of `\r\n`, the file is terminated with `ctrl-z`.

Macintosh files are defined to use a line ending of `\r`, there is no special end of file character.

Microsoft Windows files are defined to use a line ending of `\r\n`, there is no special end of file character.

UNIX files are defined to use a line ending of `\n`, there is no special end of file character.

The unix2dos.emf, dos2unix.emf and unix2win.emf were renamed to 2dos.emf, 2unix.emf and 2win.emf when 2mac.emf was added in October 2006 as the 'from' format is not important and number of combinations became unmanageable.

## SEE ALSO

me(1), start-up(3), filetype(3f), auto(2m), cr(2m), lf(2m), ctrlz(2m).

(c) Copyright JASSPA 2009
Last Modified: 2009/10/03
Generated On: 2009/10/12

</HMTL>