Re: Conversion of text files DOS <---> Linux

From: Alan Wilcox (alandwilcox_at_hotmail.com)
Date: 11/29/03


Date: Sat, 29 Nov 2003 20:24:44 GMT

The *Kludge* that worked:

1. Put the CD into dos box; ran ftp.
2. Connected to remote Linux box.
3. Transferred a few CD directories (ASCII mode) to Linux.
4. Transferred *back* from Linux (ASCII again) to target dos directory.

Well, if that worked, I thought to ftp to myself (all in dos) using
local ftp service. Transferred files, but files remained unix format.

Kevin, if you find that C code, send it along; this is becoming
another project. Funny how the simple moving some files from a CD
turns into such a hassle. Now, what was I trying to do a couple days
ago when I got on this sidetrack? :-)

Thanks, all.
Alan

-------------------------------------------------------------
Alan Wilcox wrote:

> Thanks folks! Here's summary so far ...
> 1. Do ascii FTP.
> 2. Use dos2unix and unix2dos (prob what I was trying to recall).
> 3. Use todos and fromdos (which I never did find in SuSE).
>
> Short of writing my own, there must be an easy fix for this
> situation that started the question ...
>
> The CD that came with "PHP and MySQL Web Development" is
> DOS format; author created example files with only 0x0a at
> end of lines. If I use Notepad to edit, the formatting is
> useless; if I use Mozilla Composer, it trashes the php
> code. (Source is ok in Linux, but I work in Win-2k a lot.)
>
> There should be a DOS version of unix2dos to covert all
> the files in multiple directories. Somewhere. Ideas?
>
> Alan
> -------------------------------------
>
> Alan Wilcox wrote:
>
>> Hello,
>>
>> It's been ages since I was first on Linux, and I seem
>> to remember there was an easy way to convert txt files.
>> When I ftp over a Linux text file, I'm missing the 0x0d
>> at the end of a line when in Windows ... and that
>> doesn't work well with Notepad.
>>
>> Anybody recall how to do the conversion easily?
>>
>> Thanks!
>> Alan
>>
>



Relevant Pages

  • Re: why I always got extra characters after ftp to linux pc
    ... I use ftp to put some files to linux ... > When transfering TEXT files from OS to OS, use the 'ascii' ... > When transfering BINARY files, use the 'binary' mode of ftp. ...
    (comp.os.linux)
  • Re: why I always got extra characters after ftp to linux pc
    ... I use ftp to put some files to linux ... > is that, when I upload same file to two different linux pcs, one has ... When transfering TEXT files from OS to OS, use the 'ascii' ...
    (comp.os.linux)
  • Re: Derivative effects.
    ... > windows comes from dos, which was designed for personal desktops. ... Thats distro specific, not linux specific. ... > scrollbar setup screens, and anyone who has ever installed an os knows ...
    (Debian-User)
  • Re: Anyone tried basiclinux?
    ... As a practical matter, since so few are still using dos, I dont worry ... my Linux internet logon. ... As for big drives, I work in text, not graphics. ...
    (alt.linux)
  • Derivative effects.
    ... Linux comes from Unix, ... windows comes from dos, which was designed for personal desktops. ... I *never* get told I dont have 'permission' to access a floppy. ... Linux is terrific for networks. ...
    (Debian-User)