Skip to content

Instantly share code, notes, and snippets.

@developernotes
Created May 12, 2012 22:44
Show Gist options
  • Select an option

  • Save developernotes/2669549 to your computer and use it in GitHub Desktop.

Select an option

Save developernotes/2669549 to your computer and use it in GitHub Desktop.
Script to print delete/create commands for Android AVD
android list avd | awk '/Name: /{print("android delete avd -n " $2)}'
android list targets | egrep "(android-)|(Name:)" | xargs -L 3 | grep "^id:" | awk '{print("android -s create avd -c 1000M -n emulator-" $7 " -t " $2)}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment