20 Nov
2004
20 Nov
'04
13:41
On Sat, Nov 20, 2004 at 02:00:04PM +0100, Al Bogner wrote:
Ich setze die Rechte etwa so:
find /publik/ -type f -print0 | xargs -0 chmod o+rwx
Dies führt dann zu Problemen, wenn keine Dateien im Verzeichnis sind. Wie fange ich das am besten ab? Geht das nur (umständlich) mit if?
Oder Du verwendest den -r Schalter für xargs. Auszug man xargs: --no-run-if-empty, -r If the standard input does not contain any nonblanks, do not run the command. Normally, the command is run once even if there is no input. f -- Gravity is a myth, the Earth sucks.