11 Sep
2006
11 Sep
'06
11:01
Hallo, Am Mon, 11 Sep 2006, Andre Tann schrieb:
Philipp Thomas, Montag, 11. September 2006 10:07:
for trashdir in $(find /home -type d -a -name Trash); do rm $trashdir/* done
Das findet mir alle Verzeichnisse, die Trash heißen. Das will ich aber nicht. Ich möchte nur genau diese Verzeichnisse treffen: /home/*/.local/share/Trash, wobei der * für alle User steht, die in /home ihr Homeverzeichnis haben.
find /home/*/.local/share/Trash -type f -print0 | xargs -r -0 rm -f Das sind aber GNUismen. -dnh -- God must love the Common Man; He made so many of them. -- BSD fortune file