dotfiles/.local/bin/mping

3 lines
120 B
Text
Raw Normal View History

2018-12-26 00:40:38 +01:00
#!/bin/bash
ping $1|awk -F[=\ ] '/me=/{t=$(NF-1);f=3000-14*log(t^20);c="play -q -n synth 1 pl " f;print $0;system(c)}';