Re: Ausdrücke in allen Dateien ändern
On Thu, 19 Nov 2009 09:07:51 +0100, Sebastian Rose
>for file in $(find . -name '*.php'); do
> cp $file $file.orig
> sed -e 's/body bgcolor="#ffffff"/body id="style"/g' $file.orig > $file
>done
Im Zweifel gleich sed -i
Grüße
Marc
--
-------------------------------------- !! No courtesy copies, please !! -----
Marc Haber | " Questions are the | Mailadresse im Header
Mannheim, Germany | Beginning of Wisdom " | http://www.zugschlus.de/
Nordisch by Nature | Lt. Worf, TNG "Rightful Heir" | Fon: *49 621 72739834
Reply to: