Little regex help please - solved - I think
Jeremy C. Reed
reed at reedmedia.net
Thu Sep 7 20:37:21 MST 2006
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!
More information about the PLUG-discuss
mailing list