How can I search patterns in Screen with a Perl regex? -
I have a process that gives me constant output in the screen. I want to search Camel Seas by the Regex of the following Pearl in the Outlet so that I can actively monitor the output.
/ \ b ([az] * [az] [az] *) {2,} \ b /
I tested in GNU / screen and checked the source code. Both suggest that this is not possible. The search feature appears to help only match the original string.
I recommend that you use the tee command to send the output of your program to a file other than print. You can then use Perl or grep on the file.
$ your_program | T your_program_output $ grep pattern your_program_output
Comments
Post a Comment