Skip to content

Instantly share code, notes, and snippets.

@antonagestam
Last active January 1, 2016 17:19
Show Gist options
  • Save antonagestam/8176498 to your computer and use it in GitHub Desktop.
Save antonagestam/8176498 to your computer and use it in GitHub Desktop.
Level up
# Move contents of dir to current dir
function level_up(){
temp_name="_$1_temp"
mv $1 $temp_name; mv $temp_name/{,.}* .; rmdir $temp_name;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment