Guest User

Untitled

a guest
Jan 20th, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. cat >./foo.bar <<EOL
  4. t=$(ping 8.8.8.8)
  5. EOL
  6.  
  7. t=
  8. Pinging 8.8.8.8 with 32 bytes of data:
  9. Reply from 8.8.8.8: bytes=32 time=17ms TTL=57
  10. Reply from 8.8.8.8: bytes=32 time=16ms TTL=57
  11. Reply from 8.8.8.8: bytes=32 time=17ms TTL=57
  12. Reply from 8.8.8.8: bytes=32 time=17ms TTL=57
  13.  
  14. Ping statistics for 8.8.8.8:
  15. Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
  16. Approximate round trip times in milli-seconds:
  17. Minimum = 16ms, Maximum = 17ms, Average = 16ms
  18.  
  19. cat >./foo.bar <<'EOL'
  20. t=$(ping 8.8.8.8)
  21. EOL
Add Comment
Please, Sign In to add comment