Re: find/replace text

Kezdőlap
Csatolmányok:
Üzenet email-ben
+ (text/plain)
Üzenet törlése
Válasz az üzenetre
Szerző: Mike Garfias
Dátum:  
Címzett: plug-discuss
Tárgy: 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