Re: [UNIX NEWBIE] - scripting help

From: Rodrigo Barbosa (
Date: 02/12/99

At 09:44 AM 02/12/1999 -0600, you wrote:
>Here's the basic idea:
>dos2unix act.comm.c >
>mv act.comm.c
>dos2unix ban.c >
>mv 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`
dos2unix $i > ${i}.k
mv ${i}.k $i

Rodrigo Barbosa <>
"Born to be wild !"

     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     |  |

This archive was generated by hypermail 2b30 : 12/15/00 PST