Merci a tous,

Merci pour le -R , pourquoi faire simple...

Je prefere pourtant utiliser find, dans la mesure ou cela fonctionne avec
(en principe) avec toute autre commande.

Merci encore

-----Message d'origine-----
De�: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] De la part de Christophe MATHERN
Envoy�: vendredi 25 juillet 2003 16:38
��: [EMAIL PROTECTED]
Objet�: Re: [linux] syntaxe -exec de find ?


> At 25/07/03 15:32, you wrote:
> >Bonjour de Corse
>
> Bonjour du Nord,
>
> >Je souhaite faire un chown sur une arborescence complete
> >Find . print exec chown gaston {};                   ne fonctionne
> >pas (missing argument to exec)
> >Jai aussi tente ensuite
> >Find . print exec chown gaston {} \;
> >
> >Find . print exec chown gaston {};
> >
> >Find . print exec chown gaston {};
> >
> >Sans success
> >Il me semble pourtant avoir utilise une de ces syntaxes sous sco ou
> >SVR4.
> >Merci davance pour le tuyau
>
> chown -R ?
> man chown
>
>   -R, --recursive
>                Modifier r�cursivement  l'appartenance  des  r�per�
>                toires et de leurs contenus.
>
> sinon avec find, un | xargs est mieux qu'un exec en terme de rapidit�.
>
> exemple : find . -name "*~" | xargs rm pour supprimer tous les
> fichiers de backup de vim situ� dans un r�pertoire et ses
> sous-r�pertoires.
>
> A plus
> Fred
>
> PS : poster en texte, c'est plus mieux ;-)
>
>
find . -print | xargs -t chown gaston

( ca marche aussi .... )
> _______________________________________________________
> Linux Mailing List - http://www.unixtech.be
> Subscribe/Unsubscribe: http://www.unixtech.be/mailman/listinfo/linux
> Archives: http://www.mail-archive.com/[EMAIL PROTECTED]
> IRC: efnet.unixtech.be:6667 - #unixtech

_______________________________________________________
Linux Mailing List - http://www.unixtech.be
Subscribe/Unsubscribe: http://www.unixtech.be/mailman/listinfo/linux
Archives: http://www.mail-archive.com/[EMAIL PROTECTED]
IRC: efnet.unixtech.be:6667 - #unixtech

_______________________________________________________
Linux Mailing List - http://www.unixtech.be
Subscribe/Unsubscribe: http://www.unixtech.be/mailman/listinfo/linux
Archives: http://www.mail-archive.com/[EMAIL PROTECTED]
IRC: efnet.unixtech.be:6667 - #unixtech

Répondre à