dotfiles/scripts/ping.sh
2021-12-10 12:02:06 -06:00

4 lines
99 B
Bash
Executable file

#!/bin/sh
ping=$(ping -c 4 1.1.1.1 | tail -1| awk '{print $4}' | cut -d '/' -f 2)
echo "$ping"