home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
FTNCHEK2.ZIP
/
LFCRLF11.ZIP
/
LF-CRLF.DOC
< prev
next >
Wrap
Text File
|
1992-01-07
|
6KB
|
143 lines
40 Chars description: "Fast & safe DOS<->UNIX text translation"
46 Chars description: "Fast & safe DOS<->UNIX text files translation"
LF & CRLF - The ultimate UNIX to DOS and UNIX to DOS translators.
If you constantly transfer text and binary files between UNIX and DOS
platforms, using Kermit or any other file transfer program then these
utilities are for you.
You can set your file transfer program to use always use the (slightly
faster) binary mode for file transfer. Once the files are on the PC, you
can translate the files from the UNIX text format to the DOS text format
using CRLF. Before you transfer the files to UNIX you can translate your
text files to UNIX format using LF. Registration will buy you a UNIX
version of CRLF and LF. With this version you can do text file translations
on UNIX too.
Highlights:
------------
* Quick: just a few seconds to process the 0.5MB simtel20 list.
* Convenient: will process files "in place". You don't have to worry
about temporary file names.
* Power-fail resilient: until processing is finished, there is always
an on disk copy of the file currently being processed.
* Smart: Will not damage binary files. (Text and Binary file extensions
are set by in the environment).
* Safe: will not process files of unknown type without asking.
* Small: each utility is less than 10K on disk.
* Time accurate: Preserve files time and date.
* Self documenting: run with the -? flag to get online documentation.
* Versatile: many modes of operations including filter mode. (Run with the
'-?' flag to see them all).
* Robust: tested extensively on large and small files. Operated flawlessly
for over a year on the author's machines.
* Free (but copyrighted) to private users. However, if you are a company or
make money from selling software or distributing shareware, you are
required to register.
Author address:
---------------
Yossi Gil, P.O. Box 3148, Jerusalem, Israel.
Internet e-mail address: yogi@cs.ubc.ca
COPYING POLICY
--------------
The following policy is intended to promote free private use and
distribution, and to collect money from those who can. In particular, these
institutions which make money exploiting private users, are required to
pass on part of their income to whoever is responsible for generating it.
PRIVATE USERS. You are free to use, copy and distribute this package for
noncommercial private use provided that:
a) No fee is charged for use, copying or distribution.
b) It is not modified in any way.
If you find this package useful, easy, and convenient to use, a
registration of 15 US dollars would be appreciated. All registered users
will receive the most recent version of this package + UNIX source code.
NON_PRIVATE USE. Institutions and companies MUST register this package
after an evaluation period of 21 days. Registration of one copy per company
site is sufficient.
NON-PRIVATE DISTRIBUTION. Shareware distributor: If you collect fee at any
level for distributing shareware disks you must register before including
this collections. Universities & Government Institutions: If you offer this
package to your users in the form of diskette or electronic library, you
must register. Electronic collections: If your main source of income is to
collect fee for connection and download time (i.e., COMPUSERVE like or any
pay BBS) you must register before offering LF and CRLF in your collections.
Registration will buy you a copy licensed for your distribution with your
company name on it. Please indicate which string (up to 64 chars) should be
used when registering.
NON-FEE DISTRIBUTION: Simtel/ Garbo/ other FTP collections: Naturally, you
may store this package and offer it package to your users free of any
restrictions.
DISCLAIMER
-----------
The author disclaims all warranties as to this software, whether expressed
or implied, including without limitation any implied warranties of
merchantability, fitness for a particular purpose, functionality or data
integrity or protection.
What's in this archive?
-----------------------
LF.COM Make lines end with LF (omit CR's and ^Z's). Version 1.01.
CRLF.COM Make each line end with a cr/lf sequence. Version 1.02.
LF-CRLF.DOC This file. Documentation for LF.COM & CRLF.COM
_DESC.BTM 4DOS batch file. Will add 4DOS file description for above files.
Copyright (c) 1991,1992 by Yossi Gil, P.O. Box 3148, Jerusalem, ISRAEL.
Usage: LF [flags] file[s] [[flags] file[s] ...]
or
Usage: CRLF [flags] file[s] [[flags] file[s] ...]
Will process the given files (wild cards too). To avoid corrupting binary
files, LF and CRLF will not process files whose extension occurs in the
environment variable BIN-EXT, and will prompt the user before processing a
file whose extension does not occur in the environment variable TXT-EXT.
Multiple extensions in these environment variables should be separated by a
'#' character. Empty extension is denoted by two consecutive '#'s. For
example 'set BIN-EXT=arc#com#exe#lzh#' and 'set TXT-EXT=doc##txt#c'. These
settings are best done from AUTOEXEC.BAT.
Flags:
-c Certain mode; Consider all files not known as text to be binary.
-f Force mode; do not prompt before processing files of unknown type.
-t Ignore the TXT-EXT environment setting.
-b Ignore the BIN-EXT environment setting.
-s Work silently; do not display log line for each processed file.
-n Nothing mode; shows what would have happened if run without -n.
-l Display licence info
-? (or -h) Display this message
Without any parameters CRLF and LF works as a filter, translating the
standard input to the standard output.