Skip to content

Instantly share code, notes, and snippets.

@lotsofcode
Created May 20, 2014 13:33
Show Gist options
  • Select an option

  • Save lotsofcode/479e6d5cea89ccf348b2 to your computer and use it in GitHub Desktop.

Select an option

Save lotsofcode/479e6d5cea89ccf348b2 to your computer and use it in GitHub Desktop.
#!/bin/bash
rm -fr *.ova
# extract the sfx files into the respsective zip files
for SFX in *.sfx
do
echo "Extracting SFX: $SFX";
./$SFX
done
# extract the ova's
for OVAZIP in *.ova.zip
do
echo "Extracting ZIP: $OVAZIP";
unzip "$OVAZIP"
done
# Import the OVA
for OVA in *.ova
do
echo "Importing: $OVA";
VBoxManage import "$OVA";
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment