Created
August 14, 2015 06:39
-
-
Save mb00g/260add5fc250c72d0d17 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
#!/bin/bash | |
read -p "Name Prefix: " NAME | |
read -p "Quantity: " QUANTITY | |
COUNT=1 | |
while [ $COUNT -le $QUANTITY ] ; do | |
xe vm-uninstall vm="$NAME$COUNT" force=true; | |
let COUNT=COUNT+1 | |
done | |
exit 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment