Skip to content

Instantly share code, notes, and snippets.

@cciollaro
Last active December 23, 2015 23:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cciollaro/6709621 to your computer and use it in GitHub Desktop.
Save cciollaro/6709621 to your computer and use it in GitHub Desktop.
move everything in a directory to the same level as the directory. then rm the directory.
#!/bin/sh
if [ $# -eq 0 ]
then
echo "usage: explode <dir>"
exit 1
fi
mv $1/* $1/..
rm -r $1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment