Created
July 31, 2017 05:10
-
-
Save ueno1969/63a7031f22e68e2878d11ab5a3d0e81c to your computer and use it in GitHub Desktop.
poundctrlの表示を1行に並べる
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
sudo /usr/local/pound/sbin/poundctl -c /var/run/pound/poundctl.socket -H |awk ' | |
/^ [ 0-9]*\. http Listener/ {l=$1} | |
/^ [ 0-9]*\. Service/ {m=$1} | |
/^ [ 0-9]*\. Backend/ {s = l""m""$0; gsub(/[ .]+/, " ", s); print s } | |
' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment