From: Yuri Leikind Date: 2001-12-15T09:49:22+09:00 Subject: [ruby-talk:28566] Re: help with ^M (line endings ) removing Dinakar Desai wrote: > Hello: > > I have some files that were created in windows. When I use vi editor > the line ending shows as ^M. what is the easiest method to remove them. > Thank you. > ruby -p -e '$_.sub!(/\r/,"")' < in.txt > out.txt Yuri Leikind