From: James Edward Gray II Date: 2005-06-23T01:24:11+09:00 Subject: Re: Newbee: recursively converting LF to CRLF and vice versa On Jun 22, 2005, at 10:52 AM, Elliott wrote: > Can anyone provide me > some hints or at least some pointers to parts of Picaxe from which I > could assemble this functionality. My "hint" would be to get it working on one file first. That's pretty easy. You can do it with a single Regexp. Then expand it to a recursive directory search. How do you want to detect binary files? By extension? Regexp can probably help there too. My "where to look advice" is the Regular Expression section (page 68) for the conversion, the Find library (page 679) for the directory traversal, and the OptionParser library (page 711) for the options you want to give yourself. I'm not knowledgeable about packaging Ruby .exe files, but I know there are tools for this. Check out AllInOneRuby, for example. If you really need this fast and coding it isn't a requirement, I'm going to be blown away if a line ending conversion tool doesn't already exist in some form. Hope that helps. James Edward Gray II