On Sat, 1 Sep 2001 22:59, Randy Kramer wrote:
> David E. Fox wrote:
> > And don't forget 'tr' and/or 'sed', both of which can do these batch
> > conversions, and much more.
>
> Thanks!
>
> Randy Kramer
If you look at the man page for mount ('man mount'), you can find the
following in the FAT mount options:
conv=b[inary] / conv=t[ext] / conv=a[uto]
The fat file system can perform CRLF<-->NL (MS-DOS
text format to UNIX text format) conversion in the
kernel. The following conversion modes are avail�
able:
binary no translation is performed. This is the
default.
text CRLF<-->NL translation is performed on all
files.
auto CRLF<-->NL translation is performed on all
files that don't have a "well-known binary"
extension. The list of known extensions can
be found at the beginning of fs/fat/misc.c
(as of 2.0, the list is: exe, com, bin, app,
sys, drv, ovl, ovr, obj, lib, dll, pif, arc,
zip, lha, lzh, zoo, tar, z, arj, tz, taz,
tzp, tpz, gz, tgz, deb, gif, bmp, tif, gl,
jpg, pcx, tfm, vf, gf, pk, pxl, dvi).
Programs that do computed lseeks won't like in-ker�
nel text conversion. Several people have had their
data ruined by this translation. Beware!
For file systems mounted in binary mode, a conver�
sion tool (fromdos/todos) is available.
If you mount your FAT partition using the 'conv=t' or 'conv=a' options,
conversion of text files to DOS (CR+LF) format will be automatic whenever you
copy a UNIX text file to that partition.
--
Sridhar Dhanapalan.
"There are two major products that come from Berkeley:
LSD and UNIX. We don't believe this to be a coincidence."
-- Jeremy S. Anderson
Want to buy your Pack or Services from MandrakeSoft?
Go to http://www.mandrakestore.com