Skip to content

Instantly share code, notes, and snippets.

@jathanism
Created February 13, 2013 22:46
Show Gist options
  • Select an option

  • Save jathanism/4949088 to your computer and use it in GitHub Desktop.

Select an option

Save jathanism/4949088 to your computer and use it in GitHub Desktop.
AIM Fight CLI version (http://aimfight.com)
#!/bin/sh
if test $# -eq 2
then
response=`curl -s "http://www.aimfight.com/getFight.php?name1=$1&name2=$2"`
noamp=`echo $response | tr '&' ' '`
noeql=`echo $noamp | tr '=' ' '`
echo $1 = $(echo $noeql | awk '{ print $4 }')
echo $2 = $(echo $noeql | awk '{ print $6 }')
else
echo Usage aimfight [screenname1] [screenname2]
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment