[ < < < Home ] [ < < Reference Start ] [ < Reference Contents ]
[ < Previous=FGREPPE 3.13 Options ] [ Next=NLX 3.13 Options > ]

Intelligence Services

NLX 3.13

NLX can make text files more readable on IBM PC's.  It does this
by translating end-of-line (EOL) characters to MSDOS EOL format
(carriage return CR followed by line feed LF character
sequence).

NLX Translates MACINTOSH and UNIX text files to MSDOS format.

Or NLX can do the reverse, to port text end of line characters
to the UNIX EOL character (LF), or the MACINTOSH EOL character
(CR).

NLX Options are also provided to transform standard MSDOS EOL
character sequences to other standard EOL characters and
sequences:

Translate MSDOS or UNIX format to MACINTOSH, with option -m.

Translate MSDOS or MACINTOSH format to UNIX, with option -u.

NLX can also:

Do translations only on pure ASCII or TEXT files (-ja and -jt).

Preview files on MS-DOS computers by 1 screen page at a time.

Do translation as an editor, modify files (-ke).

Do translation on entire directory trees, (Recursive descent) (-r).


Example:

Normally the PC MSDOS command shell instruction of "type" will
output a file to the screen and be UNABLE to handle non-PC End
Of Line sequences.

Here is what "type" does to a MacIntosh file:


	command /c type mac.txt


Notice that hardly any output of a multi-line file was visible.

Now, let us execute NLX with this:


	nlx mac.txt


The output is MUCH BETTER with file mac.txt translated to PC DOS
New Line format by NLX.

Here is what "type" does to a UNIX file:


	command /c type unix.txt


See how you get plenty more lines with a UNIX file when viewed
by DOS!

Unfortunately the lines do not return to the left margin so You
are left to jump from one text fragment to another, like climbing
up and down a crazy staircase.


	nlx unix.txt


NLX also translates UNIX text files to PC DOS format and lets
You see the text more plainly.

See the option sections for more information on options.


Notes:

NLX has been carefully constructed with state transistion tables
that ensure only opposing end-of-line sequences are translated.

Normal EOL's in their native format remain unaffected.

This prevents a purely MSDOS text files from having their
contents displayed or altered in strange unreadable formats.

In the edit mode (via options -ke or -ko), only files that have
EOL's translated to MS-DOS format are changed.

Use Intelligence Services program PDGREPPE for more exotic
translations.

The MS-DOS ERRORLEVEL variable is affected by this program.

Program Return Value (MS-DOS ERRORLEVEL)

Value

0	Success.  Data had end-of-line sequences changed.
1	No end-of-line sequences changed.
2	Program given bad options or data.
3	Program failure.  (Please contact by EMAIL: intlsvs@gmail.com)

[ < < < Home ] [ < < Reference Start ] [ < Reference Contents ]
[ < Previous=FGREPPE 3.13 Options ] [ Next=NLX 3.13 Options > ]

Intelligence Services

© Intelligence Services 1987 - 2008   GPO Box 9,   ADELAIDE SA 5001,   AUSTRALIA
EMAIL   :   intlsvs@gmail.com