From chemistry-request@server.ccl.net  Tue Feb 29 12:40:56 2000
Received: from mailbox.syr.edu (root@mailbox.syr.edu [128.230.18.5])
	by server.ccl.net (8.8.7/8.8.7) with ESMTP id MAA27956
	for <CHEMISTRY@ccl.net>; Tue, 29 Feb 2000 12:40:56 -0500
Received: from mailbox.syr.edu (syru33-131.syr.edu [128.230.33.131])
	by mailbox.syr.edu (8.9.2/8.9.2) with ESMTP id MAA16517;
	Tue, 29 Feb 2000 12:40:08 -0500 (EST)
Message-ID: <38BC042C.9C535DA1@mailbox.syr.edu>
Date: Tue, 29 Feb 2000 12:38:52 -0500
From: "Martin L. Sage" <mlsage@mailbox.syr.edu>
X-Mailer: Mozilla 4.61 [en] (OS/2; I)
X-Accept-Language: en
MIME-Version: 1.0
To: Yubo Fan <yubofan@guomai.sh.cn>
CC: CHEMISTRY@ccl.net
Subject: Re: CCL:Text file transfer between linux and dos
References: <38BB6FD2.90708C33@guomai.sh.cn>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Run the program dos2unix on each file.  If you do not have that program
do the following:
   tr -d \\015 < 'file name' > 'new file name'

where 'file name' is the name of the file you have in the mounted DOS
partition including path and 'new file name' is the name of the file
including path where you want the file to reside for use in Linux.  If
you want it to stay where it was and keep the same name you must change
the name in the 'tr' operation and use 'mv' to change it back to the
original name.



Yubo Fan wrote:
> 
> Hi,
> 
> I have installed Windows 98 and RedHat Linux 6.1 on my PC. Usually I
> edit G98 input file on Windows 98. The problem is when I start Linux and
> mount the DOS partitions, I cannot copy the input files correctly. "^M"
> was added to the end of each lines. They cannot work by G98.
> 
> I need some help. Is there a way to copy the files by ascii way (not
> binary way).
> 
> Thanks in advance
> 
> Y. Fan
> 
> --
> =============================================================
> Yubo Fan                         Email: yubofan@guomai.sh.cn
> Organic Synthesis Lab
> The Department of Chemistry
> Fudan University                 Phone: 8621-65648139
> No. 220 Handan Road              Fax:   8621-65641740
> Shanghai, 200433
> P. R. China
> =============================================================
> 
> -= This is automatically added to each message by mailing script =-
> CHEMISTRY@ccl.net -- To Everybody    |   CHEMISTRY-REQUEST@ccl.net -- To Admins
> MAILSERV@ccl.net -- HELP CHEMISTRY or HELP SEARCH
> CHEMISTRY-SEARCH@ccl.net -- archive search    |    Gopher: gopher.ccl.net 70
> Ftp: ftp.ccl.net  |  WWW: http://www.ccl.net/chemistry/   | Jan: jkl@ccl.net

