My files from my home machine running Windows have a bunch of extra ^M characters at the ends of the lines when I view them on Unix with a Unix editor such as pico/vi/emacs. What can I do? Answer: There is a unix command, dos2unix, that will clean them up. Suppose you downloaded Hw1.java from your home computer to your unix account using FTP (see earlier faq). To convert it, on your unix account type, dos2unix Hw1.java > temp This will put the cleaned up version into the file named temp. The first time you might want to check temp using the editor and make sure it looks ok. Once you are sure temp has been cleaned up type: mv temp Hw1.java which will replace Hw1.java with temp (MoVe temp to Hw1.java). It will probably ask you if you really want to replace the existing Hw1.java. Answer yes. You may also need to fix up the indentation. Sorry, no automatic program for that. If you use emacs, open the file with emacs and then type the following: ctrl-x ( TAB ctrl-n ctrl-x ) Meta-100 ctrl-x e This will fix up to 100 lines of your program. If your file is more than 100 lines long then just repeat the last 2 lines (Meta-100, ctrl-X e). Here is what's happing. ctrl-x ( this begins the creation of a keyboard macro TAB this is the tab key not TAB, it says indent one line ctrl-n this moves to the next line ctrl-x ) this ends the keyboard macro Meta-100 this says do the next command 100 times ctrl-x e this says invoke the keyboard macro (which is done 100 times) If you are new to emacs, remember ctrl-X means hold down the Ctrl key (like a shift key) and press x. Meta-100 means hold down the Meta or Alt key (like a shift key) and type 100 (hold down the Alt the entire time). You should probably try this on a copy of your program the first time, in case you goof it up.