Hello All,

The files in one of my dir are:
.              ..             .aliases       .aliases.sav   attach
dean           inbox          interesting    lists          .log.02-01-11
.log.02-01-12  .log.02-01-13  .log.03-02-01  .log.03-02-02  .log.03-02-03
.log.03-02-04  .log.03-02-05  .log.03-02-06  .log.2-01-11   .log.2-1-11
.log.2-1-12    .msgid.cache   sent           .tmp           trash

I want bash to match the following pattern in file listing but it
dosen't do that. Can you point what I am doing wrong.

ls Mail/.log\.[0-9]*$(($(date +'%y')-1))-[01]*$(($(date +'%m')-1))-*

Output is:
Mail/.log.02-01-11  Mail/.log.02-01-12  Mail/.log.02-01-13

The asterix is not being considered.
Why the files .log.2-01-11 .log.2-1-11 .log.2-1-12 are not matched?
Any solution...

Thanks.

-- 
vikram...    <[EMAIL PROTECTED]>
-- 
~|~
 =
Registered Linux User #285795



-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to