Skip to content

Instantly share code, notes, and snippets.

@hieunt79
Last active April 24, 2020 08:15
Show Gist options
  • Save hieunt79/821ca5afe8c14df873a4ad06439fd2cd to your computer and use it in GitHub Desktop.
Save hieunt79/821ca5afe8c14df873a4ad06439fd2cd to your computer and use it in GitHub Desktop.
ping with timestamp
#!/bin/bash
for ip in {5..12}
do
ping 12.12.12.$ip| while read line; do echo `date` - $line; done >> node.$ip &
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment