Skip to content

Instantly share code, notes, and snippets.

@jvorcak
Created May 3, 2019 07:06
Show Gist options
  • Save jvorcak/617f7ea36b8f739caa8981b3de19a95e to your computer and use it in GitHub Desktop.
Save jvorcak/617f7ea36b8f739caa8981b3de19a95e to your computer and use it in GitHub Desktop.
kill specific tmux sessions based on awk expression
tmux list-sessions | awk 'BEGIN{FS=":"}{print $1}' | xargs -n 1 tmux kill-session -t
source (https://askubuntu.com/a/1014428)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment