create multiple copies in linux of file 1

create multiple copies in linux of file

for i in {1..100}; do cp test.ogg "test$i.ogg"; done

Here is what the above code is Doing:
1. Create a directory called “test”
2. Change into that directory
3. Create a file called “test.ogg”
4. Copy that file 100 times, each time incrementing the file name by 1

Similar Posts