Your solution does meet the spec, but it's really just a disaster waiting to happen. Keeping the directory contents and the names file in sync will be a challenge and really seems unmaintainable.
I'd really be interested in what pbaumgar is actually trying to solve here.
In reply to Re^3: rename files
by lostjimmy
in thread rename files
by pbaumgar
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |