new tmux-pwn

This commit is contained in:
Barak Michener 2014-01-20 16:38:32 -05:00
parent f12bc5eeb4
commit ec1c014bff

View file

@ -1,4 +1,5 @@
#!/usr/bin/env bash
tmux list-clients | sed "s|^\(/dev/ttys[0-9]\+\).*\[\([0-9]\+x[0-9]\+\).*$|\2 \1|" | sort -r -n | tail -n +2 | cut -d " " -f 2 | xargs -n 1 tmux detach-client -t
#tmux list-clients | sed "s|^\(/dev/ttys[0-9]\+\).*\[\([0-9]\+x[0-9]\+\).*$|\2 \1|" | sort -r -n | tail -n +2 | cut -d " " -f 2 | xargs -n 1 tmux detach-client -t
tmux list-clients | sed "s:^\(/dev/\(ttys\|pts/\)[0-9]\+\).*\[\([0-9]\+x[0-9]\+\).*$:\3 \1:" | sort -r -n | cut -d " " -f 2 | xargs -n 1 tmux detach-client -t