Thanx to all of you for your quick and helpful responses. dos2unix did not work on my machine. My machine is IBM/AIX using korn shell.
The solution sent by Henry Wong worked. Thanx again. -Bheem -----Original Message----- From: Richard Brust [mailto:[EMAIL PROTECTED]] Sent: Friday, June 07, 2002 11:18 AM To: AITHA, BHEEMSEN (SBCSI) Subject: Re: [Perl-unix-users] ^M characters two possibilities: use a perl script/one-liner to remove the special "\r" character, or use the command "dos2unix", which will convert for you... At Friday 6/7/2002, you wrote: >Hi, > >I had copied some files from c:\ drive on to Unix machine. At the end of >each line, I see the end of line character(^M). To get rid of all these ^M >characters, I had opened a file in vi and performed the following command. > >:s/^M//g > >But vi says that pattern does not exist. Is there any other hidden character >associated here ? Can any one tell me how to get rid of them. I have lots of >files. A small perl script would be a lot of help to me. > >Thanx.. >-Bheem > >_______________________________________________ >Perl-Unix-Users mailing list >[EMAIL PROTECTED] >To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs Richard Brust IT Manager Technology Business Research Hampton, NH. USA _______________________________________________ Perl-Unix-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs