As a follow-up to my previous question, if I have multiple files of the form
sw.ras.001 sw.ras.002 sw.ras.003 …
What command can I use to remove the
ras. in the middle of all the files?
You can do this with a fairly small modification of either answer from the last question:
In any POSIX-compliant shell (
Another option is to use mmv (Mass MoVe and rename):
Don't forget to use the single quotes around your patterns, otherwise the stars will be expanded at the shell level.
The utility is not always available but if it's not, you can install it with:
See the man page here.