Mailinglist Archive: opensuse (950 mails)

< Previous Next >
Re: [opensuse] cli find cmd syntax
On 2015-01-03 18:26, Per Jessen wrote:
Hylton Conacher (ZR1HPC) wrote:


On 03/01/15 02:19, I.Petrov wrote:

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

This command is another way to do it but I am unsure of the wildcard
characters(*) you have used

Those aren't wildcards, they're for highlighting.

Oh my.

One should never do that on text that is not text, but a command line example.
It confuses things.

Anyway, the command does not work, it finds files inside those paths. Not only
the master folders.

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

The mails of the "new" directory should not be displayed.

Cheers / Saludos,

Carlos E. R.
(from 13.1 x86_64 "Bottle" at Telcontar)

< Previous Next >
Follow Ups