Re: [newbie] Converting Text Files between Linux and Dos/Windows

2001-09-01 Thread Sridhar Dhanapalan

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



Re: [newbie] Converting Text Files between Linux and Dos/Windows

2001-09-01 Thread Arthur H. Johnson II


Actually that wont work.  WHen the text files get open in Windows, you
will get wierd characters.  Use a utility called mcopy to copy the files.

On Fri, 31 Aug 2001, civileme wrote:

> On Friday 31 August 2001 13:57, you wrote:
> > I'm going to need to transfer text files back and forth between Linux
> > and Windows regularly for some period of time.
> >
> > I think I've found one way to do it -- using mcopy with the -a (or -t
> > ??) option, but I thought I'd ask for other suggestions.
> >
> > I'll start out transferring on floppies (today) but fairly soon use
> > smbclient to mount some Windows partitions on my Linux machine.
> >
> > Thanks,
> > Randy Kramer
>
>
> Open those mounts on your machine with a file manager like Konqueror
>
> Then drap 'N drop
>
> Civileme
>
>

-- 
Arthur H. Johnson II
[EMAIL PROTECTED]
The Linux Box
http://www.linuxbox.nu




Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



Re: [newbie] Converting Text Files between Linux and Dos/Windows

2001-09-01 Thread Randy Kramer

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



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



Re: [newbie] Converting Text Files between Linux and Dos/Windows

2001-09-01 Thread Michel Clasquin

On Saturday 01 September 2001 02:46, [EMAIL PROTECTED] wrote:
> I use a texteditor called TextPad www.textpad.com it will open unix files
> and save as the same with having to convert them. Its also a great general
> editor with tons toys.

And on our side of the great divide, nedit will give you an option to save in 
ms-dos format in its Save As dialog. 
-- 
Michel Clasquin, D Litt et Phil (Unisa)
[EMAIL PROTECTED]/unisa.ac.za   http://www.geocities.com/clasqm
This message was posted from a Microsoft-free PC

"An intellectual is someone who has discovered something more 
interesting than sex" - Aldous Huxley




Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



Re: [newbie] Converting Text Files between Linux and Dos/Windows

2001-08-31 Thread David E. Fox

> need to do batch conversions for '\n'  between U*nx and DOS (windoze), 
> do a Google or ftp search for 'unix2dos'.  I believe there's also 
> 'dos2unix'.

And don't forget 'tr' and/or 'sed', both of which can do these batch
conversions, and much more.

>   Tom Brinkman   Galveston Bay

David E. Fox  Thanks for letting me
[EMAIL PROTECTED]change magnetic patterns
[EMAIL PROTECTED]   on your hard disk.
---



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



Re: [newbie] Converting Text Files between Linux and Dos/Windows

2001-08-31 Thread [EMAIL PROTECTED]

I use a texteditor called TextPad www.textpad.com it will open unix files
and save as the same with having to convert them. Its also a great general
editor with tons toys.

my $0.02

Steven

- Original Message -
From: "Randy Kramer" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, August 31, 2001 1:57 PM
Subject: [newbie] Converting Text Files between Linux and Dos/Windows


> I'm going to need to transfer text files back and forth between Linux
> and Windows regularly for some period of time.
>
> I think I've found one way to do it -- using mcopy with the -a (or -t
> ??) option, but I thought I'd ask for other suggestions.
>
> I'll start out transferring on floppies (today) but fairly soon use
> smbclient to mount some Windows partitions on my Linux machine.
>
> Thanks,
> Randy Kramer
>
>






> Want to buy your Pack or Services from MandrakeSoft?
> Go to http://www.mandrakestore.com
>




Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



Re: [newbie] Converting Text Files between Linux and Dos/Windows

2001-08-31 Thread Randy Kramer

Tom Brinkman wrote:
>Just thought it was worth mentioning that 'edit' in M$ products
> still does it right if you save a u*nx created file with it. I suspect
> it's the only M$ editor that adheres to ASCII standards. FWIW, if you
> need to do batch conversions for '\n'  between U*nx and DOS (windoze),
> do a Google or ftp search for 'unix2dos'.  I believe there's also
> 'dos2unix'.

Tom,

Thanks for the followup.  I've downloaded both of these (they came
together in one package) for win32.  I'm sure they are available for
Linux also, but right now it's most convenient to use them in Windows.

Thanks,
Randy Kramer



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



Re: [newbie] Converting Text Files between Linux and Dos/Windows

2001-08-31 Thread Tom Brinkman

On Friday 31 August 2001 05:36 pm, Randy Kramer escribió:
> >The only thing you might run into is /n (line feed) differences.
> > Linux does it properly, windoze doesn't. Well, cept for DOS's
> > 'edit'. If you move or copy a txt file to windoze, open it with
> > 'edit' and then save it.  Then even brain dead windoze editors will
> > be able to display it properly.
>
> Ahh, that's helpful.  I tried Notepad, Wordpad, and Word.  Word
> works, but it's a little cumbersome.
>
> Randy Kramer


  Actually it's been a long time since I ran in to the the differences 
between U*nx handling of carridge returns, line feeds, new lines, 
whatever, between Windoze (and everybody else) in txt files.  Linux 
must be gettin more tolerant ;> 

   Just thought it was worth mentioning that 'edit' in M$ products 
still does it right if you save a u*nx created file with it. I suspect 
it's the only M$ editor that adheres to ASCII standards. FWIW, if you 
need to do batch conversions for '\n'  between U*nx and DOS (windoze), 
do a Google or ftp search for 'unix2dos'.  I believe there's also 
'dos2unix'.

-- 
Tom Brinkman   Galveston Bay



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



Re: [newbie] Converting Text Files between Linux and Dos/Windows

2001-08-31 Thread Randy Kramer

Tom Brinkman wrote:
> Well, I don't understand. If it's a dual boot situation, you surely
> don't need floppy's.  AND you don't need anything extra to mount
> windoze partitons. Your properly configured fstab and normal kernel
> with vfat enabled should be able to work with windoze partitions, other
> than NT's ntfs.

Just to satisfy your curiosity, it's two separate computers, thus the
need for floppies, or, for example, smbclient.

>The only thing you might run into is /n (line feed) differences.
> Linux does it properly, windoze doesn't. Well, cept for DOS's 'edit'.
> If you move or copy a txt file to windoze, open it with 'edit' and then
> save it.  Then even brain dead windoze editors will be able to display
> it properly.

Ahh, that's helpful.  I tried Notepad, Wordpad, and Word.  Word works,
but it's a little cumbersome.

Randy Kramer



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



Re: [newbie] Converting Text Files between Linux and Dos/Windows

2001-08-31 Thread Randy Kramer

civileme,

Thanks!  Very simple!

Randy Kramer

civileme wrote:
> 
> On Friday 31 August 2001 13:57, you wrote:
> > I'm going to need to transfer text files back and forth between Linux
> > and Windows regularly for some period of time.

> Open those mounts on your machine with a file manager like Konqueror
> 
> Then drap 'N drop



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



Re: [newbie] Converting Text Files between Linux and Dos/Windows

2001-08-31 Thread Randy Kramer

Mark,

Thanks for the response!  Really appreciate it because I couldn't get
mcopy to work as I expected.  Downloaded DOS2UNIX.EXE (for win32) from
http://www.bastet.com/software/software.html -- seems to work fine.

(I don't have an ftp server on either computer, and, for security /
loading reasons, don't plan to set one up, but it is helpful to know,
especially when I deal with other sites.)

Randy Kramer

Mark Johnson wrote:
> 
> use FTP in ASCII mode... it'll auto correct linux to dos and dos to linux
> for ya...
> 
> Also, check freshmeat.net, they probably have a dos2unix/unix2dos utilities
> for linux.  Solaris comes with this utility...



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



Re: [newbie] Converting Text Files between Linux and Dos/Windows

2001-08-31 Thread civileme

On Friday 31 August 2001 13:57, you wrote:
> I'm going to need to transfer text files back and forth between Linux
> and Windows regularly for some period of time.
>
> I think I've found one way to do it -- using mcopy with the -a (or -t
> ??) option, but I thought I'd ask for other suggestions.
>
> I'll start out transferring on floppies (today) but fairly soon use
> smbclient to mount some Windows partitions on my Linux machine.
>
> Thanks,
> Randy Kramer


Open those mounts on your machine with a file manager like Konqueror

Then drap 'N drop

Civileme



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



RE: [newbie] Converting Text Files between Linux and Dos/Windows

2001-08-31 Thread Mark Johnson

use FTP in ASCII mode... it'll auto correct linux to dos and dos to linux
for ya...

Also, check freshmeat.net, they probably have a dos2unix/unix2dos utilities
for linux.  Solaris comes with this utility...

> -Original Message-
> From: Randy Kramer [mailto:[EMAIL PROTECTED]]
> Sent: Friday, August 31, 2001 12:57 PM
> To: [EMAIL PROTECTED]
> Subject: [newbie] Converting Text Files between Linux and Dos/Windows
> 
> 
> I'm going to need to transfer text files back and forth between Linux
> and Windows regularly for some period of time.
> 
> I think I've found one way to do it -- using mcopy with the -a (or -t
> ??) option, but I thought I'd ask for other suggestions.  
> 
> I'll start out transferring on floppies (today) but fairly soon use
> smbclient to mount some Windows partitions on my Linux machine.
> 
> Thanks,
> Randy Kramer
> 
> 



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com