ls & rm with regular expression
e.g. rm -rf backup-20070[8-9]-*
would delete :
- backup-200708-morning
- backup-200708-evening
- backup-200709-night
- backup-200709-latenight
but not :
- backup-200706-morning
- backup-200707-afternoon
- backup-200711-midnight
e.g. ls backup-20070[1-9] would list all backup starting from January to September but leave October, November & December out, of year 2007.