1996-02-04 01:34:31 +00:00
|
|
|
.\" Copyright (c) 1993-1996 Soenke Behrens, Devin Reade
|
1995-02-08 06:12:49 +00:00
|
|
|
.\"
|
1996-02-11 20:05:49 +00:00
|
|
|
.\" $Id: udl.1,v 1.10 1996/02/11 20:05:48 gdr Exp $
|
|
|
|
.\"
|
1996-02-04 01:34:31 +00:00
|
|
|
.TH UDL 1 "Commands and Applications" "31 January 1996" "Version 1.1.5"
|
1994-12-13 18:08:34 +00:00
|
|
|
.SH NAME
|
|
|
|
udl - convert text files between different architectures
|
|
|
|
.SH SYNOPSIS
|
|
|
|
.BR udl
|
|
|
|
.BR -u | m | g
|
|
|
|
[
|
1995-02-08 05:15:36 +00:00
|
|
|
.B -Rvp
|
1994-12-13 18:08:34 +00:00
|
|
|
]
|
|
|
|
.I file1
|
|
|
|
[
|
|
|
|
.IR file2 " ..."
|
|
|
|
]
|
|
|
|
.SH DESCRIPTION
|
|
|
|
.B udl
|
|
|
|
converts files between different computer systems by changing the EOL
|
1995-02-08 05:05:49 +00:00
|
|
|
(End-Of-Line) character.
|
|
|
|
.PP
|
|
|
|
On the Apple IIgs,
|
|
|
|
.B udl
|
|
|
|
will skip any file that is not of type TXT or SRC.
|
|
|
|
No notice is given of this unless the
|
|
|
|
.B -v
|
|
|
|
flag is used.
|
|
|
|
Since Unix file systems do not have file types
|
|
|
|
.BR udl
|
|
|
|
is limited in the types of checks which it can carry out,
|
|
|
|
so the user must take care that
|
|
|
|
it is not invoked on object files or the like. On both platforms, if
|
|
|
|
.I file
|
|
|
|
appears to be a binary file (that is, no EOL is
|
1995-02-08 06:12:49 +00:00
|
|
|
found in the first part of the file) then
|
|
|
|
.I file
|
|
|
|
will be skipped.
|
1995-02-08 05:05:49 +00:00
|
|
|
Again, no notice is given of this unless the
|
|
|
|
.B -v
|
|
|
|
flag is used.
|
1994-12-13 18:08:34 +00:00
|
|
|
.PP
|
1995-02-08 06:12:49 +00:00
|
|
|
During file conversion
|
1994-12-13 18:08:34 +00:00
|
|
|
.B udl
|
1995-02-13 19:47:38 +00:00
|
|
|
creates a temporary file in the same directory as the original file.
|
1995-02-08 06:12:49 +00:00
|
|
|
The temporary file is close to or exactly the same size as the original
|
|
|
|
file.
|
1994-12-13 18:08:34 +00:00
|
|
|
.PP
|
|
|
|
When running under Byteworks' ORCA shell, the Orca shell wildcards
|
|
|
|
.BR =
|
|
|
|
and
|
|
|
|
.BR ?
|
|
|
|
are properly expanded in file names.
|
|
|
|
.SH OPTIONS
|
|
|
|
.IP \fB\-u\fP
|
|
|
|
Convert to use LF as EOL (Unix/Amiga).
|
|
|
|
.IP \fB\-m\fP
|
|
|
|
Convert to use CR/LF as EOL (MS-DOS).
|
|
|
|
.IP \fB\-g\fP
|
|
|
|
Convert to use CR as EOL (Apple).
|
|
|
|
.IP \fB\-p\fP
|
|
|
|
Be pedantic, only affects Unix<->Apple conversions, see below.
|
|
|
|
.IP \fB\-R\fP
|
|
|
|
Recurse through subdirectories.
|
|
|
|
.IP \fB\-v\fP
|
|
|
|
Be verbose, show the file udl is currently working on.
|
|
|
|
.PP
|
|
|
|
If you specify the
|
|
|
|
.B -p
|
|
|
|
switch,
|
|
|
|
.B udl
|
|
|
|
is pedantic while doing the conversion. This means: The input file may
|
|
|
|
contain bytes with a value of zero (0), and the input file may contain
|
1995-02-08 06:12:49 +00:00
|
|
|
different EOL characters (ie: MS-DOS and Unix style might be mixed in
|
|
|
|
one file). For conversions to or from MS-DOS
|
1994-12-13 18:08:34 +00:00
|
|
|
.B udl
|
|
|
|
is always pedantic, so this only affects conversions from Unix to Apple
|
|
|
|
or vice versa. Being pedantic slows udl down by a factor of 1.5.
|
1995-02-08 06:12:49 +00:00
|
|
|
.SH LIMITATIONS
|
1996-02-04 01:34:31 +00:00
|
|
|
When running under GNO on the Apple IIgs, there is a limit to the nesting
|
1995-02-08 05:05:49 +00:00
|
|
|
depth when recusing on subdirectories. This is because the routine that
|
|
|
|
is responsible for this behavior is itself recursive. The default 2k
|
|
|
|
stack size will allow about 33 levels of nested directories, so this limit
|
|
|
|
should not normally be a problem. If the limit is exceeded,
|
|
|
|
.BR udl
|
|
|
|
will exit with an error message before any files are changed, and before
|
|
|
|
the stack actually overflows.
|
1995-02-08 06:12:49 +00:00
|
|
|
.SH BUGS
|
|
|
|
Bug reports should be directed to one of the two addresses below.
|
1994-12-13 18:08:34 +00:00
|
|
|
.SH AUTHOR
|
1995-02-08 06:12:49 +00:00
|
|
|
Soenke Behrens <sbehrens@contech.demon.co.uk> with contributions by
|
|
|
|
Devin Reade <gdr@myrias.ab.ca>.
|
1994-12-13 18:08:34 +00:00
|
|
|
.SH VERSION
|
|
|
|
This is
|
|
|
|
.B udl
|
1996-02-04 01:34:31 +00:00
|
|
|
version 1.1.5.
|