dotfiles/.local/bin/mping

4 lines
139 B
Text
Raw Permalink Normal View History

2018-12-26 00:40:38 +01:00
#!/bin/bash
2022-12-04 20:44:55 +01:00
export LANGUAGE=en
2018-12-26 00:40:38 +01:00
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)}';