On 2015-01-04 14:07, Andrei Borzenkov wrote:
В Sun, 04 Jan 2015 12:34:53 +0200 "I.Petrov" <> пишет:
Hello,
Actually I didn't know that the asterisks can be used for highlighting in the mailing list. Anyway, the asterisks (at least this in front of the directory name e.g. *cur) are *required* in the command line in order the directories to be omitted.
That's true, because you used -path. But if you want to match every directory nameed "cur" using -name is more simple (and probably slightly more efficient). -path is usually useful when you want to match one specific instance of given name only.
Sorry for the confusion.
Then I'm confused. I get: cer@Telcontar:~> find $HOME/Mail/maildir -type d -path *cur* -prune -o -path *new* -prune -o -path *tmp* -prune -o -path *courierimapkeywords* -prune -o -print find: paths must precede expression: newfile1.txt Usage: find [-H] [-L] [-P] [-Olevel] [-D help|tree|search|stat|rates|opt|exec] [path...] [expression] cer@Telcontar:~> -- Cheers / Saludos, Carlos E. R. (from 13.1 x86_64 "Bottle" at Telcontar)