dotfiles/.local/bin/mping

2 lines
120 B
Bash
Executable file

#!/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)}';