Strange Characters After Using Notepad

Hello all,

I'm new to UNIX and new to this forum, so forgive my lack of knowledge. I'm new with editing in vi so I FTP scripts to a Windows machine and edit the script in notepad (when I need to do something quickly). Sometimes when I FTP the script back to the UNIX box, strange characters appear in the script like "M-^?M". I don't see the charaters if I edit the script with vi after ftping it back to UNIX; I only see the characters when using the more command.

Any information/guidance is appreciated.

Dan

DOS files have carriage-control characters that are different from unix.
There are utitlities to handle this on the unix side, consult the man pages for:
dos2ux (sometime called dos2unix)
ux2dos (sometimes called unix2dos)

Always use FTP ASCII mode to transfer text files in between Windows/DOS and any versions of Unix, including Linux; and BINARY mode in between Unix systems.

Thanks so much for the replies. Much appreciated.

dgower:

Follow me here.

BZT