Neil Morrison wrote: > Use 'tr'. > > $ tr '\012' '\015' <sourcefile >destfile > > should do it. Be sure to use forward quotes, not backquotes. Ok, what you show above works. Why does this give me zero length files? for i in *.c; do echo $i; tr '\015' '\012' <$i >$i; done also, can I do this? for i in *.c *.h and take care of 2 extensions at one pass.