At 09:44 AM 02/12/1999 -0600, you wrote: >Hello, > >Here's the basic idea: > >dos2unix act.comm.c > act.comm.ck >mv act.comm.ck act.comm.c >dos2unix ban.c > ban.ck >mv ban.ck ban.c >etc etc... > >Could someone tell me how to dos2unix an entire directory w/ >in one command line or how would I tell it to not to make a new >file if one does not exist..? Something like this would help: for i in `ls` do dos2unix $i > ${i}.k mv ${i}.k $i done -- Rodrigo Barbosa <rpedroso@inatel.br> "Born to be wild !" +------------------------------------------------------------+ | Ensure that you have read the CircleMUD Mailing List FAQ: | | http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html | +------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/15/00 PST