tags:

views:

53

answers:

2

Basically we need to change the end of line characters for a group of files.

Is there a way to accomplish this with a batch file? Is there a freeware utility?

+7  A: 

dos2unix

Ken
You'll probably want a regex with that like `terminal$> dos2unix *.extension`
rlb.usa
You mean a glob?
Ken
A: 

You should be able to use tr in combination with xargs to do this.

On the Unix side at least, this should be the simplest way. However, I tried doing it that way once on a Windows box over a decade ago, but discovered that the Windows version of tr was translating my terminators right back to Windows format for me. :-( However, I think in the interveneing decade the tools have gotten smarter.

T.E.D.