Skip to content

Instantly share code, notes, and snippets.

@jrtashjian
Created October 11, 2011 12:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jrtashjian/1277914 to your computer and use it in GitHub Desktop.
Save jrtashjian/1277914 to your computer and use it in GitHub Desktop.
Infinite Copy Loop
// Not really an infinite loop as the system exits the process eventually, caused by the name being too long.
// This is what I did:
macbook:~ $ mkdir /var/www/directory/
macbook:~ $ cp -R [bunch of files/directories] /var/www/directory/
macbook:~ $ cd /var/www/directory
// at this point I forgot to create a subdirectory I wanted these files to be in, inside the directory I just created.
macbook:directory/ $ mkdir /var/www/directory/example/
macbook:directory/ $ cp -R * example/
// ...queue infinite loop. haha
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment