Posts

Showing posts from July, 2015

Modifying a unix file in windows

I faced an issue when I modified the unix file in windows using cygwin; it was throwing an error. I searched some where and found the following way is simple to do it. This issue is because of the special characters which will be created when we edit a unix file in cygwin. To remove dos2Unix issues in cygwin need to do the following in the vi editor. :e ++ff=dos :w ++ff=unix :e! Once these commands executed, just quit the file and all the additional characters added will be removed. There are other ways to do it. But I felt it is simple and want to share.