Skip to content

Latest commit

 

History

History
8 lines (6 loc) · 239 Bytes

copy-one-file-to-multiple-files.md

File metadata and controls

8 lines (6 loc) · 239 Bytes

Copy one file to multiple files in Bash

Posted on 24 Dec, 2019

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.