Last active
January 1, 2016 17:19
-
-
Save antonagestam/8176498 to your computer and use it in GitHub Desktop.
Level up
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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