I am using eclipse editor to work on my remote files it appears that eclipse editor is set to dos file format, I do not know how to find fileformat set in eclipse editor, bu
Take look of following image for changing format:
Window -> Preferences -> General -> Workspace -> New text file line delimiter