mv file file~ ; tr -d '\015' <file~ >file ; rm file~
Or, in vim, :set fileformat=unix
Or, use PFE32.EXE on Windows as your editor (allows saving
as Unix text file).
-Tilghman
--
"There cannot be a crisis today. My schedule is already full."
--Henry Kissinger
> -----Original Message-----
> From: John W Ford [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, February 13, 2001 01:04
>
> I can't figure out why my windows machine leaves "^M"
> character at the end
> of each line of code. This causes the file to be messed up
> when I put it on
> the Linux server.
>
> It makes my perl interpreter look for a file named ^M after
> the very first
> line.
>
> #!/usr/sbin/perl
>
> also... what else I can't figure out is why this special character is
> sometimes hidden and sometimes visible in my Emacs program in
> Linux... this
> is the program I used in which I found the problem.
>
> anybody know?
>
> John Ford
>
---------------------------------------------------------------------
Before posting, please check:
http://www.mysql.com/manual.php (the manual)
http://lists.mysql.com/ (the list archive)
To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php