[linux-l] Re: Skripting-Hilfe gesucht - iname
Ivan Villanueva
iv at artificialidea.com
Fr Apr 29 14:46:10 CEST 2005
On Thu, Apr 28, 2005 at 10:59:06AM +0000, Rocco Rutte wrote:
> * Jan-Benedict Glaw [05-04-27 17:21:39 +0200] wrote:
>
> >find /path/to/mountpoint -type f \( -name '*.iso' -o -name '*.mp3' \)
> >-exec chmod 0640 {} \;
>
> Viel schneller:
>
> | find /path/to/mountpoint -type f \( -name '*.iso' -o -name '*.mp3' \)
> -print0 | xargs chmod 0640
Ich würde statt "-name" "-iname" benutzen.
> Obwohl das aber immernoch nicht schön ist, weil es andere Dateien außen
> vor lässt...
Was meinst Du damit ?
Iván.
--
Encrypted mail preferred.
GPG Key Id: 3FDBF85F 2004-10-18 Ivan-Fernando Villanueva Barrio
-------------- nächster Teil --------------
Ein Dateianhang mit Binärdaten wurde abgetrennt...
Dateiname : signature.asc
Dateityp : application/pgp-signature
Dateigröße : 189 bytes
Beschreibung: Digital signature
URL : <https://mlists.in-berlin.de/pipermail/linux-l-mlists.in-berlin.de/attachments/20050429/45317a13/attachment.sig>
Mehr Informationen über die Mailingliste linux-l