Re: How one could address a window with a highest number inside a particular screen session?

2012-05-16 Thread Kevin Van Workum
How about this: screen -Q windows | sed -e 's/.*\([1-9]\+\).\? \+[^ ]\+$/\1/' On Tue, May 15, 2012 at 2:47 PM, Anatoly Varakin < anatoly.vara...@adotube.com> wrote: > Dear colleagues, > > ** ** > > Please help to resolve the problem of finding a reliable way to address > programmatically (v

How one could address a window with a highest number inside a particular screen session?

2012-05-16 Thread Anatoly Varakin
Dear colleagues, Please help to resolve the problem of finding a reliable way to address programmatically (via bash script) a window with a highest number inside a particular screen session, without an explicit specification of neither window number nor title, and no matter which window has bee