Hello,
The directories are being copied properly. We know that in DOS both line feed and
carriage return is used (ASCII 13,10) for terminating a line. But this is not the case
with Linux or other Unix platforms, which uses a single terminating character.
LINUX TO DOS:
So, after transferring text files from Linux to Dos, if you open the file in Notepad
you see that the whole file will be in a single line. In order to rectify this open
the files in the DOS editor EDIT and save the file. Now if you open the file in
notepad, you observe that is quite normal.
DOS TO LINUX:
After transferring text files from Dos to Linux, when you open the file in VI
editor, you observe that every line is terminated with a ^M character. So,go to
command line mode, search and replace the ^M character with a Blank. But the problem
here is typing the ^M character for searching, because ^M is equivalent to pressing
Enter key. Therefore, before typing the ^M character, type the ^V character and you
get a ^ character, and now you can press ^M character which is readily accepted.
RAJESH R A
VI SEM, R.V. COLLEGE OF ENGG
BANGALORE
>>> "Mani Murugesan" <[EMAIL PROTECTED]> 09/27/99 11:15PM >>>
Hello,
Is there any quick way to move entire directory-trees (along with their
files) between dos and linux? I tried sz, rz etc but I could not copy the
directories. I tried to do this using SAMBA from within Windoze. However
then the files are not stripped of their '\r' (Carraige returns) before the
'\n' (Line feed). I am presently developing C programs which are portable
across linux and dos. Finally I wrote a trivial C program to do the
conversion. Is there any automatic way to do this since I have to move the
directory between both the platforms often?
Mani. M
--------------------------------------------------------------------
For more information on Linux in India visit http://www.linux-india.org/
The Linux India mailing list does not accept postings in HTML format.
--------------------------------------------------------------------
For more information on Linux in India visit http://www.linux-india.org/
The Linux India mailing list does not accept postings in HTML format.