in GNU screen, I want the title of the session to be displayed in the status bar. It is working but not exactly as I wanted.
I have the following backtick defined in my .screenrc:
backtick 100 30 30 sh -c 'screen -ls | grep --color=no -o "$PPID[^[:space:]]*"'
As I said, it does display the screen-session title but also the PID of that session; it shows, for example, something like
1234.foo
where foo is the name of that session.
My question: How can I remove the numbers including the dot to only show the session's name? (I am, obviously, not too familiar with grep ...)