HELP converting filenames!

Leslie Mikesell les at chinet.chi.il.us
Sun Oct 8 14:10:59 AEST 1989


In article <2694 at taux01.UUCP> amos at taux01.UUCP (Amos Shapir) writes:
>|First, go to the directory of interest and do 'ls -1 > doit'.
[...emacs conversion of "FILENAME" to "mv FILENAME filename"]

>What?  You have to do all that in emacs, and you still claim it's
>better than vi?  To save vi's lost honor, here's how it should be done:

>:%s/.*/mv & \U&\e/
>One line, no macros needed.

And, of course, you can read the original filenames in with:
:r !ls
and execute the commands in the edited buffer with:
:w !sh

No temporary files needed.

Les Mikesell 



More information about the Comp.unix.wizards mailing list