Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Feb 27th, 2013  |  syntax: Bash  |  size: 1.05 KB  |  views: 72  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
This paste has a previous version, view the difference. Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. #!/bin/bash
  2.  
  3. function pps2(){
  4.         ping -c 1 $1 | grep -o -e "time=[0-9]*\.*[0-9]* ms$" | cut -d "=" -f 2
  5. }
  6.  
  7. echo "Australia: Paddington, New South Wales"
  8. echo "- (AU) Briggs: $(pps2 69.174.220.23)"
  9. echo "==============================="
  10. echo "Europe: Amsterdam, North Holland"
  11. echo "- (EU) Ceres: $(pps2 195.33.132.169)"
  12. echo "- (EU) Cobalt: $(pps2 195.33.132.169)"
  13. echo "- (EU) Lithcorp: $(pps2 195.33.132.168)"
  14. echo "- (EU) Mallory: $(pps2 195.33.132.168)"
  15. echo "- (EU) Miller: $(pps2 195.33.132.172)"
  16. echo "- (EU) Woodman: $(pps2 195.33.132.169)"
  17. echo "==============================="
  18. echo "US West: San Diego, California"
  19. echo "- (US West) Connery: $(pps2 64.37.174.140)"
  20. echo "- (US West) Genudine: $(pps2 64.37.174.143)"
  21. echo "- (US West) Helios: $(pps2 64.37.174.140)"
  22. echo "==============================="
  23. echo "US East: Ashburn, Virginia"
  24. echo "- (US East) Jaeger: $(pps2 199.108.194.38)"
  25. echo "- (US East) Mattherson: $(pps2 199.108.194.38)"
  26. echo "- (US East) SolTech: $(pps2 199.108.194.39)"
  27. echo "- (US East) Waterson: $(pps2 199.108.194.41)"
clone this paste RAW Paste Data