I have a folder with a number of files in it ABC.* (there are roughly 100 such files). I want to duplicate them all to new files with names starting with DEF.*So, I want   ABC.Page1ABC.Page2ABC.Topic12...etccopied toDEF.Page1DEF.Page2DEF.Topic12...etcWhat is the simplest way to do this with a batch command (in BASH or similar)? I am thinking something involving sed or awk or xargs, but I'm having difficulty figuring out the syntax.  I could write a Python script, but I'm thinking there is probably a command line solution that is not too complicated.
How do I copy multiple files by wildcard?
bash;wildcards;file copy
How about something like this in bash:for file in ABC.*; do cp $file ${file/ABC/DEF};doneyou can test it by putting echo in front of the cp command:for file in ABC.*; do echo cp $file ${file/ABC/DEF};done