I'm processing some .html files that come off a Mac system, using sed to fix things up, from a shell script. One glitch: I've found that I have to convert each file to unix format (I have no idea of what the details here are) before sed will work properly. I can do that by opening each file in TextPad and selecting Unix file type in a pulldown of the Save-as function. There has to be a better way. Do any of you happen to know a trick for mass-converting Mac text files to Unix text files?
Hi, not a VERY good idea, but: use BBEdit Lite. There you can open several files at once. As far as I know the problem are the line delimiters. While unix is using only one of line feed&carriage return, DOS for example is using both. The Mac is even more confusing , at least for me ;-) I'm using a Mac here and I'm fine with using BBEdit 4.6 Lite (freeware) by choosing unix format firstly.... If you find a better solution I would like to paticipate .. - Gerrit