Last active
June 11, 2022 23:36
-
-
Save greymd/79ebdeb31ea08538c76e546ae469ced6 to your computer and use it in GitHub Desktop.
通常のpingで「にゃーん」を表示するシェル芸
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# From: https://twitter.com/grethlen/status/906154326975905793 | |
sudo ping -i 0 -c 1400 pong4.kooshin.net \ | |
| grep -oP "icmp_seq=\K\d+" \ | |
| cat - <(seq 1 1400) \ | |
| sort -n \ | |
| uniq -c \ | |
| awk '{printf $1}' \ | |
| fold -w70 \ | |
| tr '12' 'U!' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Ciscoのルータのようにアニメーションっぽく。