Skip to content

Instantly share code, notes, and snippets.

@bboydflo
Created May 21, 2020 21:56
Show Gist options
  • Save bboydflo/22c1dd85f72bbe44071a1d3bae5b58ba to your computer and use it in GitHub Desktop.
Save bboydflo/22c1dd85f72bbe44071a1d3bae5b58ba to your computer and use it in GitHub Desktop.
[cmd] duplicate file multiple times from #cli
for i in {1..100}; do cp -rvfp file.json copy$i.json ;done
@d99p
Copy link

d99p commented May 21, 2020

what it is?)

@bboydflo
Copy link
Author

It's a command I saved so I can remember how to duplicate a file from the command line (can be used in unix systems.) I found it somewhere on stackoverflow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment