one of your suggestions was written wrong
No, it is not written wrong. Did you actually try it?
$ perl -le' $year = 111; $mon = 7; $outdir = "_" . ($year+=1900) . "\\" . ($mon+=1) . "\\"; print $outdir; ' _2011\8\ $ perl -le' $year = 111; $mon = 7; $outdir = "_" . ($year+1900) . "\\" . ($mon+1) . "\\"; print $outdir; ' _2011\8\
It produces the result that you require.
In reply to Re^3: Moving files to subfolders based on their last modified date
by jwkrahn
in thread Moving files to subfolders based on their last modified date
by shadowfox
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |