8 screens - List all GNU/Screen sessions accessible by the user and all of their inner windows as well
16 don't show individual windows in each GNU/Screen session
41 echo "${0##*/}: unknown option: $1" >&1
49 grep -Evi '^(No Sockets found|[0-9]+ Sockets? in)|^\s*$' |\
50 while IFS
=$
'\n' read -r line
53 if [ $show_windows = yes ]
55 if [[ $line =~ ^
[\ $
'\t']+([^ $
'\t']+) ]]
57 sty
=${BASH_REMATCH[1]}
58 for win
in `screen -S "$sty" -Q @echo -p %v`
61 tty
=`screen -S "$sty" -p "$win" -Q @echo -p %T`
62 title
=`screen -S "$sty" -p "$win" -Q @echo -p %t`
63 echo $
'\t'$
'\t'"$win"$
'\t'"$tty"$
'\t'"$title"