Mandrew

Pokécheck Shoutbox Historian

Aug 2nd, 2012
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.49 KB | None | 0 0
  1. #!/bin/bash
  2. sbhistory=$1
  3. if [ $sbhistory -eq $sbhistory 2> /dev/null ]; then
  4.  if [ $sbhistory -gt 5000 ]; then
  5.   echo -e "I can't search a shoutbox history over 5000."
  6.  elif [ $sbhistory -lt 1 ]; then
  7.   echo -e "I can't search a non-positive shoutbox history."
  8.  else
  9.   # eventually we will give the user a choice of browser here
  10.   string="firefox -new-tab http://www.pokecheck.org/shoutbox.php?history=${sbhistory}"
  11.   $string
  12.  fi
  13. else
  14. echo -e "You gave me something besides a number."
  15. fi
Advertisement
Add Comment
Please, Sign In to add comment