home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 5 Edit
/
05-Edit.zip
/
cvt304.zip
/
README
< prev
next >
Wrap
Text File
|
2002-08-24
|
3KB
|
75 lines
CVT - Convert source file to Dos/Mac/Unix/Vax format V3.04
Bob Withers, 10/02/93 [as of Dec 26 1995]
Usage: CVT [-s] -cdmuv file1 file2 ... fileN
-s ==> Search subdirectories
-c ==> Check filetypes and display
-8 ==> Allow chars > 127 in converted files
-d ==> Convert to DOS format
-m ==> Convert to MAC format
-u ==> Convert to Unix format
-v ==> Convert to Vax format
Select 1 of c,d,m,u,v only
Wildcards are permitted.
Files are overwritten with converted version.
This package contains a small utility program which I have found to be
quite handy in moving files between various platforms. It's purpose is
to convert ASCII files between DOS, Unix, Mac, and Vax environments.
While many such utilities exist, I find this one particularly useful
because it accepts wildcards, searches directories below a starting point,
and avoids mangling any binary files found. For example:
cvt -sd *.*
Will convert all text files in the current directory and all child
directories to DOS format. Files already in DOS format will be skipped
as will any binary files found.
The command 'cvt -c *.*' will display the file types of all selected files
but will not perform any conversions.
The DOS and OS/2 versions of this utility use the Unix style directory
functions developed and copyrighted by me. I hereby grant permission for
these functions to be used for any non-commercial purpose as long as
proper credit is given.
All versions of this utility make use of the regular expression routines
developed by Henry Spencer at the University of Toronto. I have reformatted
this code and made several slight modifications. If bugs have crept into
these functions, they are mine not Henry's.
I sincerely hope that this utility, in whole or part, is useful to you
but (as usual) I do not warrant that it is. In fact I assume no
responsibility for any defects which may be found in this code (isn't
software engineering a wonderful profession?). Use it at your own risk.
If you fix bugs or make enhancements I would very much appreciate a copy
of your modifications. If you have comments, suggestions, or problems I
would also like to hear from you. I can be reached at the E-Mail address
below and I will attempt to respond to all inquiries.
Best regards,
Bob Withers
bwit@mo.net
========== Enhancements ===================
12/26/95
#ifdef's were added for NEED_STRERROR and a new makefile target of unix1
was included to support systems that do not have the strerror function.
This enhancement was suggested by:
Dale DePriest daled@cadence.com
A new switch, -8, was added to optionally enable the conversion of files
containing character values greater than 127. These files would normally
be considered binary and skipped. The -8 switch forces them to be processed.
This switch should be used with care. If the file is actually binary a
forced conversion would most likely corrupt it. This enhancement was
suggested and coded by:
Stefan Witzel switzel@gwdg.de