Say, if I wanted to make N copies of a.txt, and wanted them to be numbered a1.txt, a2.txt, a3.txt, etc...
How would I do such a thing succinctly?
|
Say, if I wanted to make N copies of a.txt, and wanted them to be numbered a1.txt, a2.txt, a3.txt, etc... How would I do such a thing succinctly? |
|||
|
|
|
|
|||
|
|
|
Assuming you have your N value in a bash variable:
or
or with the loop shown in Kevin's answer. |
||||
|
|
|
If you want something more funky, you can for example do:
|
|||
|
|