Re: find/replace text

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Mike Garfias
Date:  
To: plug-discuss
Subject: Re: find/replace text
for i in `ls *.html` do; \
mv $i `basename $i .html`.php \
done

steve Phariss spoke forth with the blessed manuscript:
> I am trying to replace all instances of .html to .php in multiple files
> (same directory) I have tried a few of the sed command scripts I found
> on the web, but they do not seem to be working.
>
> Thanks for any help with this simple problem :)
>
> ---------------------------------------------------
> PLUG-discuss mailing list -
> To subscribe, unsubscribe, or to change you mail settings:
> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss

---------------------------------------------------
PLUG-discuss mailing list -
To subscribe, unsubscribe, or to change you mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss