Created
February 13, 2013 22:46
-
-
Save jathanism/4949088 to your computer and use it in GitHub Desktop.
AIM Fight CLI version (http://aimfight.com)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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