bash: script to classify files by created/modified date