Carlos, et al -- I have been totally loving this thread. Thank you, Hylton, for so much fun! :-) ...and then Carlos E. R. said... % % On 2015-01-04 14:07, Andrei Borzenkov wrote: % > ?? Sun, 04 Jan 2015 12:34:53 +0200 "I.Petrov" <> ??????????: % > ... % >> 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 ... % > % > 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 Gotta love long lines with no backslashes, right? :-) [Hylton, in addition to agreeing with Anton et al that you need to enjoy -- yes, enjoy! -- some serious time with the sh man page, tutorials on the web, and even a good book, I'd say that 90% of your problems are because you're using a GUI mailer that tries to be smart and reformat lots of things for you. In a case like this, you want as little alteration as possible.] % find: paths must precede expression: newfile1.txt % Usage: find [-H] [-L] [-P] [-Olevel] [-D help|tree|search|stat|rates|opt|exec] [path...] [expression] Try that in a directory with no files. Try that in a directory with a file (or dir) called 'cur'. Try that after first running 'set noglob'. Or, as you discovered, put the splats in quotes (of either type, although I'd personally use singles in this case) to protect the params from shell expansion. Never boring :-) Happy New Year :-D -- David T-G See http://justpickone.org/davidtg/email/ See http://justpickone.org/davidtg/tofu.txt -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org