Skip to content

Instantly share code, notes, and snippets.

@ueno1969
Created July 31, 2017 05:10
Show Gist options
  • Save ueno1969/63a7031f22e68e2878d11ab5a3d0e81c to your computer and use it in GitHub Desktop.
Save ueno1969/63a7031f22e68e2878d11ab5a3d0e81c to your computer and use it in GitHub Desktop.
poundctrlの表示を1行に並べる
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