Created
May 16, 2013 23:31
-
-
Save rothwerx/5595947 to your computer and use it in GitHub Desktop.
Bash: Keep or Delete?
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
#keep or delete? | |
function kod() | |
{ | |
ls -l $@ | |
echo "Keep (k) or Delete (d)?" | |
read answer | |
if [ $answer == "k" ]; then | |
echo "Keeping. As you wish." | |
elif [ $answer == "d" ]; then | |
echo "DELETING $@" | |
rm -rf $@ | |
else | |
echo "You need to push either k or d. This isn't hard." | |
fi | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment