bin/MACC02VK5ECHTD7/jmass
#!/bin/bash query="$1" shift 2> /dev/null ips=$(awless list instances --filter state=running,name="$query" "$@" --format json | jq -r '.[] | [.PrivateIP] | .[]') tmux new-window 'ssh-trash-test' while IFS= read -r i do tmux split-window "ssh $i" tmux select-layout tiled done <<< "$ips" tmux setw synchronize-panes on