Wildcard file rename using MV command
Posted on 2013-11-04
I have a *nix system (x-wrt infact) and need to do some wilcard rename of files.
The files are in a folder, along with many other files. The files I'm interested, share the following name format:
and I need to rename all these files into:
If it was MS-DOS, then I would use something like:
ren before-*.sh after-*.sh
But in *nix, this won't work.
mv before-*.sh after-*.sh
I need to know how to get this done on *nix. Specially, the commands should run on the x-wrt system. I cannot install anything extra.