I have 12 files named dmp_000, dmp_001, etc, all the way to dmp_011. I would like to copy all of them to rdmp_000, rdmp_001, and so on, sequentially so the numbered files coincide. There must be an easy way to do this rather than individually? Thank you!
Tell me more
×
Unix & Linux Stack Exchange is a question and answer site for
users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.
|
|
|
I used this command to generate some sample data
To duplicate the files and preserve the original files modify/create dates:
To move the files wdmp* to rdmp*
NOTE: You could also have used @warl0ck's answer for that using the |
|||||||||
|
|
If the use of
See this link for more examples. |
||||
|
|
|
Try rename command, and only rename those started with
To keep the files, try an alternate method like this,
|
||||

