Re: ein kleines bash toot für den webserver
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
--
CE
"Be liberal in what you accept, and conservative in what you send."
Jon Postel, August 6, 1943 - October 16, 1998
Reply to: