Skip to content

Instantly share code, notes, and snippets.

@mb00g
Created August 14, 2015 06:39
Show Gist options
  • Save mb00g/260add5fc250c72d0d17 to your computer and use it in GitHub Desktop.
Save mb00g/260add5fc250c72d0d17 to your computer and use it in GitHub Desktop.
#!/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