in reply to Process multiple directories

Update. One more problem to my modified script: it only works when I put 0 days, when i put 1 or more days, it doesn't print anything.