Copy one file to multiple files using Bash

📅️ Published: December 24, 2019  • 🕣 1 min read

To copy one file contents to multiple files, simply use this

for f in file{1..10}.py; do cp $f; done

this will create new files, etc and copy contents of file to all of them.

Tired of fucking up with git everyday?

ugit helps you undo git commands with ease. Undo from 20+ git scenarios

ugit cli demo screen