screen-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How one could address a window with a highest number inside a partic


From: Kevin Van Workum
Subject: Re: How one could address a window with a highest number inside a particular screen session?
Date: Wed, 16 May 2012 15:21:55 -0400

How about this:

screen -Q windows | sed -e 's/.*\([1-9]\+\).\? \+[^ ]\+$/\1/'

On Tue, May 15, 2012 at 2:47 PM, Anatoly Varakin <address@hidden> wrote:

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 been opened manually last time. It is necessary for the consecutive closing windows in the strict backward order opposite to the windows creation order.

 

Any ideas would be greatly appreciated.

 

Thanks in advance!

 

Kind regards,

Anatoly Varakin

 


_______________________________________________
screen-users mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/screen-users




reply via email to

[Prev in Thread] Current Thread [Next in Thread]