[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: ein kleines bash toot für den webserver



On 2004.02.19 12:23, Christian Eichert wrote:

Philipp Meier wrote:


Das gibt Dir alles auf der Konsole aus. besser ist wohl entweder

find /var/www/html -type f -print0 | xargs -0 perl -i \
-e 's/BEISPIEL1/BEISPIEL2'

tut nicht ...

# find /var/www/html -type f -print0 | xargs -0 perl -i \
-e 's/BEISPIEL1/BEISPIEL2'
Substitution replacement not terminated at -e line 1.
xargs: perl: exited with status 255; aborting



oder (mit bakup)

... perl -i.bak -e '...'

versteh ich nicht.

# find /var/www/html -type f -print0 | xargs -0 perl -i.back \
-e 's/BEISPIEL1/BEISPIEL2'

tut auch nicht
selber fehler wie oben

Kein Wunder, das Perl-Commando ist nicht vollstaendig! So siehts aus:

s/BEISPIEL1/BEISPIEL2/

Schoenen Gruss,

Andreas



Reply to: