/var/www/virtual/*/phptmp/*
Code: Alles auswählen
cd /var/www/virtual/
find -name phptmp -exec rm -rf {} +
(die leeren phptmp sollen erhalten bleiben)
Code: Alles auswählen
cd /var/www/virtual/
find -name phptmp -exec rm -rf {} +
Code: Alles auswählen
# find /var/www/virtual/ -name phptmp -exec echo rm -rf '{}'/* +
If universal surveillance were the answer, lots of us would have moved to the former East Germany. If surveillance cameras were the answer, camera-happy London, with something like 500,000 of them at a cost of $700 million, would be the safest city on the planet.
—Bruce Schneier
Danke, aber so will es noch nicht, scheinbar wird damit gar nichts gelöscht ...Cae hat geschrieben:Wie waer's mit? Das angehaengte /* sollte auf alle darin liegenden Teile, aber (hoffentlich) nicht auf . oder .. matchen.Code: Alles auswählen
# find /var/www/virtual/ -name phptmp -exec echo rm -rf '{}'/* +
Gruss Cae
Ja, das ist Absicht, ich mag keine Fertigrezepte geben, die dann versehentlich irgendwas zerstoeren. Wenn dir gefaellt, was du siehst, entferne das echo aus der Zeile.fulltilt hat geschrieben:Danke, aber so will es noch nicht, scheinbar wird damit gar nichts gelöscht ...
If universal surveillance were the answer, lots of us would have moved to the former East Germany. If surveillance cameras were the answer, camera-happy London, with something like 500,000 of them at a cost of $700 million, would be the safest city on the planet.
—Bruce Schneier