Mailinglist Archive: opensuse-de (1798 mails)

< Previous Next >
Re: Skriptfrage: Verzeichnisse finden
  • From: David Haller <lists@xxxxxxxxxx>
  • Date: Mon, 11 Sep 2006 11:01:04 +0000 (UTC)
  • Message-id: <20060911105832.GA9575@xxxxxxxxxxxxxxxxxx>
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

< Previous Next >
Follow Ups