Skip to content

Jaime Rios

  • About
  • Github
  • LinkedIn
  • X

copy

How to duplicate one file … a lot

June 10, 2011 by jaimerios

I had to duplicate a file… over a thousand times, for a test. For the MacOS, I created a shell script to do this: #!/usr/bin/env bash # I’m passing in the filename as a parameter to the shell script, # which is accesible through $1 for (( i = 0; i < 2000; i++ )); ... Read more

Categories Tip Tags batch, bsh, copy, file copy, Shell Leave a comment

Recent Posts

  • Package management with CMake’s CPM
  • Automate Evernote using AppleScript
  • Unit Tests and CMake
  • clang static analyzer
  • C++ std::erase and rbegin/rend

Recent Comments

  1. Connecting with C++ – Jaime Rios on Working with REST
  2. Connecting with C++ – Jaime Rios on Making a connection using Swift
  3. Jaime on Xcode 3.1, Perforce and Scripts
  4. jaimerios.com » Blog Archive » Haversine formula now on GitHub on Calculating distance between 2 points on Earth using the Haversine formula
  5. iPhone 3G: How to show locations around a fixed point? | Questions on Calculating distance between 2 points on Earth using the Haversine formula
© 2026 Jaime Rios • Built with GeneratePress