Am 30.12.2014 um 07:41 schrieb Hylton Conacher (ZR1HPC):
Following your lead I extended the cmd to be :~> find $HOME/Maildir -type d | egrep -v "/new"\|"/cur"\|"/tmp"\|"/courie*"\ -print |sort > /home/hylton/maillistdir
"/courie*"\ -print is the same as "/courie* -print" i.e. you look a folder name which starts with "courie" and ends with " -print". Use ... | egrep -v "/(new|cur|tmp)" | ... ("cur" will also match "courie") Also "*" doesn't work with egrep, it must be ".*" When using regexp, "e*" means "zero or more 'e'" This looks like a decent introduction to regexp: http://regexone.com/ Regards, -- Aaron "Optimizer" Digulla a.k.a. Philmann Dark "It's not the universe that's limited, it's our imagination. Follow me and I'll show you something beyond the limits." http://blog.pdark.de/ -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org