$ rabbitmqadmin -f tsv -q list connections name > c.txt $ while read -r name; do rabbitmqadmin -q close connection name="${name}"; done < c.txt