More than 5 years have passed since last update.
勉強がてらOne linerでやりたくなったのでやってみる。
screen -ls | grep Detached | awk '{ print $1}'| xargs -L 1 -I % screen -S % -X quit
他にもあった。
http://stackoverflow.com/questions/14447131/kill-all-detached-screen-sessions
screen -ls | grep pts | cut -d. -f1 | awk '{print $1}' | xargs kill
Register as a new user and use Qiita more conveniently
- You get articles that match your needs
- You can efficiently read back useful information
- You can use dark theme
