Advertisement
Guest User

Untitled

a guest
Sep 3rd, 2015
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. file=&(time -p wget -O /dev/null -q http://site/file.iso ) 2>&1 | grep real | sed -e s/real//g -e s/' '//g
  4.  
  5. if [ $file <= 1 ]
  6.  
  7. then
  8. echo "FAST"
  9. else
  10. echo "SLOW"
  11. fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement