As described in questions, if I see a file in unix then I see special characters in it like ^M at the end of every line but if I see same file in eclipse than I
^M
This are windows new line chars. You can follow steps shown in this post to have correct this issue.