Here's a solution that does it all with command line switches:
I leave it as an exercise to the reader to figure out how it works.ls -1|perl -054lp012e1
In reply to Doing it with command line switches by JavaFan
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |