Skip to content

Instantly share code, notes, and snippets.

@jasonheecs
Created December 14, 2016 08:32
Show Gist options
  • Save jasonheecs/30c3fe963281a1b88955a62eb8fd64cd to your computer and use it in GitHub Desktop.
Save jasonheecs/30c3fe963281a1b88955a62eb8fd64cd to your computer and use it in GitHub Desktop.
Bash - Move all files in current folder to a subfolder
shopt -s extglob dotglob
mv !(new) new
shopt -u dotglob
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment