Skip to content

Instantly share code, notes, and snippets.

@teffalump
Created January 2, 2015 20:42
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 teffalump/9d733e517934ad58cbb0 to your computer and use it in GitHub Desktop.
Save teffalump/9d733e517934ad58cbb0 to your computer and use it in GitHub Desktop.
moves files and directories in target directory into current directory
#!/usr/bin/bash
find "$1" -mindepth 1 -maxdepth 1 -print0 | xargs -0 mv -t .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment