Thanx to all It is very much useful to me.
NV ----- Original Message ----- From: "Krishna Dagli" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, April 15, 2004 11:27 PM Subject: Re: [LIH]FTP ^M problem > Rakesh Ambati wrote: > > Morning Dimpnil, > > > >>I am getting ^M char when ever I do ftp. > > > > > >>It is not with ALPHA UNIX AND WINDOWS. > > > > > > I found this very neat description of the problem on > > comp.unix.aix . > > > > <snip> > > > > Unix uses a newline (^J) to signify a CR/LF pair. > > DOS/Windoze/other > > systems feel that both a carriage return (^M) and > > newline (^J) are > > required to indicate an end-of-line. So if you > > transfer files in > > binary mode between the two systems, no translation of > > end-of-line > > characters occurs (the file is transmitted as-is). > > > > If you use ftp to move files between systems with the > > intent of > > still being able to access them on Unix (as you > > describe) then you > > would want to transfer the files in binary mode. The > > ftp > > protocol will leave the file alone, and not perform > > the newline > > translation. The ftp subcommand is "bin" (the > > corollary is "ascii"). > > </snip> > > > >>Is there any ASCII or BINARY setting to be changed? > >>The file is like -------- > >> > > > > To get rid of the ^M character in the existing files > > if you don't want > > to re-ftp them do the following. > > > > In a vi session for each file type the following > > :1,$s/^V^M// (colon one comma dollarsign s slash > > CTRL-V CTRL-M slash slash) > > > > The CTRL-V won't show on the screen. It is an escape > > sequence to allow > > to type the CTRL-M. This line will replace all the > > CTRL-M's with nothing. > > > > Or (1) dos2unix, > (2) in emacs CTRL+Q and then CTRL+M and replace it with > nothing. > -Krishna. > > > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > _______________________________________________ > linux-india-help mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/linux-india-help > ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ linux-india-help mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/linux-india-help
