Copy one file to multiple files in Bash
January 18, 2025 ยท View on GitHub
for f in file{1..10}.py; do cp main.py $f; done
this will create new files file_1.py, file_2.py etc and copy contents of main.py file to all of them.
January 18, 2025 ยท View on GitHub
for f in file{1..10}.py; do cp main.py $f; done
this will create new files file_1.py, file_2.py etc and copy contents of main.py file to all of them.