On 2015-01-04 13:14, Aaron Digulla wrote:
Am 03.01.2015 um 01:19 schrieb I.Petrov:
Hello,
The command in your case should be:
find $HOME/Maildir -type d -path *cur* -prune -o -path *new* -prune -o -path *tmp* -prune -o -path *courierimapkeywords* -prune -o -print
You should put quotes around the "*...*" just in case you have a matching file in the current folder.
Ah! Yep. Without them I get an error.
And I'm not sure about the last "-o". Wouldn't that print in any case?
find $HOME/Maildir -type d \ -path "*cur*" -prune \ -o -path "*new*" -prune \ -o -path "*tmp*" -prune \ -o -path "*courierimapkeywords*" -prune \ -print
It is needed. Without it the output is empty: 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 /home/cer/Mail/maildir cer@Telcontar:~> cer@Telcontar:~> find $HOME/Mail/maildir -type d -path "*cur*" -prune -o -path "*new*" -prune -o -path "*tmp*" -prune -o -path "*courierimapkeywords*" -prune -print cer@Telcontar:~> -- Cheers / Saludos, Carlos E. R. (from 13.1 x86_64 "Bottle" at Telcontar)