Last active
August 29, 2015 14:14
-
-
Save miloskroulik/49cfc5d4a177846cc997 to your computer and use it in GitHub Desktop.
Move all directories and files (including hidden ones to parent directory #bash #linux #unix
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
# You could turn on dotglob: | |
shopt -s dotglob # This would cause mv below to match hidden files | |
mv /path/subfolder/* /path/ | |
# In order to turn off dotglob, you'd need to say: | |
shopt -u dotglob |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment