Article
18.9
shows how to rename a set of files, like changing *.new
to *.old
.
Here's a different way, done from inside vi.
This gives you a chance to review and edit the commands before you run them.
Here are the steps:
& $ | % |
---|
If you've
made an
alias (10.2)
for ls that changes its output format,
that can cause trouble here.
If your alias gives more than a plain list of filenames in a column, use
!/bin/ls
instead of just !ls
.
-