Skip to content

Instantly share code, notes, and snippets.

@kfriend
Created April 13, 2013 16:18
Show Gist options
  • Save kfriend/5379036 to your computer and use it in GitHub Desktop.
Save kfriend/5379036 to your computer and use it in GitHub Desktop.
Move all files from a directory structure into a single directory
#!/bin/sh
find . -maxdepth 100 -type f -exec mv {} /path/to/destination \
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment