find et l'exlusion de repertoires
Jeremy Monnet
jmonnet at gmail.com
Sat Feb 18 14:38:05 CET 2006
On 2/18/06, Bayrouni <bayrouni at brutele.be> wrote:
> Jeremy Monnet wrote:
>
> >For example, to skip the
> >directory `src/emacs' and all files and directories under it, and
> >print the names of the other files found, do something like this:
> >find . -wholename './src/emacs' -prune -o -print
> >
> >
> find / -wholename /usr -prune -o -print \
> -type file \( -name "*.jpg" -o -name "*.jpeg" \)
>
> Mais je n'ai pas de sortie convenable
>
Qu'appelles-tu "pas de sortie convenable" ?
J'ai essayé :
jems at doudou # find . -wholename ./rep1/rep2 -prune -o \( -name "untel"
-o -name "file" \) -type f -print
./rep1/rep3/rep3/rep4/file
./rep1/rep3/rep3/file
./rep1/rep3/untel
./rep1/file
Ca m'exclut bien rep1/rep2, et ca me trouve les fichiers untel et
file, qui sont de type fichier ...
Qu'est-ce que ca te trouve (ou pas ?) qui ne devrait pas (ou devrait ?) y être ?
Jeremy
--
Linux Registered User #317862
Linux From Scratch Registered User #16571
Please do not send me .doc, .xls, .ppt, as I will *NOT* read them.
More information about the Shell
mailing list