Re: Little regex help please - solved - I think

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Jeremy C. Reed
Date:  
To: Main PLUG discussion list
Subject: Re: Little regex help please - solved - I think
On Thu, 7 Sep 2006, tickticker wrote:

> i believe that the line:
>
> cd /home/virtual; find [a-z]*/Maildir/.Trash/cur -mtime +30
>
> gives me the list i need (#1 in your list) so that
>
> cd /home/virtual; find [a-z]*/Maildir/.Trash/cur -mtime +30 -exec rm {} \;


The earlier example had /home/[a-z]*/ ... so you could/should have used
/home/virtual/[a-z]*/Maildir/.Trash/cur

> is the final solution
>
> Thanks for all your help!!! I really have to buy a regex book i suppose, and
> I hear O'Reilly has a good one


By the way, this is shell "globbing" not "regex".

Maybe your system has glob(7) and/or glob(3) manual pages.

Have fun!
---------------------------------------------------
PLUG-discuss mailing list -
To subscribe, unsubscribe, or to change you mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss