I have many files containing date extensions. For example, today’s file would be named
filename.20101118
and format is yyyymmdd. I would like to list/grep/etc for all dated files.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Do you mean just something like this ?
Note that this matches non-valid dates, too.
or, more generalized:
instead of
[a-zA-Z0-9_]you can use whatever characters your filename can contain.