Skip to content

Instantly share code, notes, and snippets.

@nviennot
Created August 12, 2013 23:02
Show Gist options
  • Save nviennot/6216164 to your computer and use it in GitHub Desktop.
Save nviennot/6216164 to your computer and use it in GitHub Desktop.
#!/bin/bash
CMD="qemu"
INPUT=""
while (($#)); do
case $1 in
--input|-i) INPUT=$2; shift;;
*) echo "Halp";;
esac
shift
done
if [[ $INPUT != "" ]]; then
CMD="$CMD -incoming \"exec:cat < \\\"$INPUT\\\"\""
fi
echo $CMD
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment