for dir in `ls -dr /dir/archive/201*` do where=`pwd` cd "$dir" echo "your commands" cd "$where" done
Not perl, but a solution, isn't it?
Best regards
McA
In reply to Re: processing dates as directories
by McA
in thread processing dates as directories
by moesplace
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |