I have a server, with a few screens started. This is what shows when I use screen -ls
:
There are screens on:
12811.screen (Detached)
2061.screen (Detached)
7055.screen (Detached)
11746.screen (Detached)
11740.realscreen (Detached)
11740.screen (Detached)
6 Sockets in /var/run/screen/S-root.
I have been trying to quit all screens at the same time that have the same name. I know I can quit all screens at once with killall screens, but this kills every screen, and I just want to quit the ones with the same name.
Is there a bash file that I would be able to use, that would loop through all the screens and quit them? Or is there another way I can quit all screens with the same name?