From: Christopher Sawtell Date: 2001-12-15T09:39:04+09:00 Subject: [ruby-talk:28564] Re: help with ^M (line endings ) removing On Saturday 15 December 2001 12:23, 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. cat windows_file.txt | tr -d "\015" > unix_file.txt Is the traditional unix one-liner for this.