Skip to content

Instantly share code, notes, and snippets.

@talwai
Created January 26, 2015 02:16
Show Gist options
  • Save talwai/d1eb281ea53b8f087300 to your computer and use it in GitHub Desktop.
Save talwai/d1eb281ea53b8f087300 to your computer and use it in GitHub Desktop.
Use Brace expansion in Bash to move files within the same folder
mv blob/a_long_directory_name/{c/x.x,evenmore/y.y} # Moves blob/a_long_directory_name/c/x.x to blob/a_long_directory_name/evenmore/y.y
# Source: http://unix.stackexchange.com/questions/89555/cp-or-mv-files-to-same-directory-they-are-already-in-when-i-am-in-another
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment