Selecting/Excluding lines of text
Submitted by Friday, 2 November, 2007 - 16:59
on
When analyzing log files it can be handy to run with split views with each view being restricted to a particular subset of lines from the file in question. I'm trying to do something like this with jEdit and am looking for some guidance to steer me in the right direction. A search of the User's Guide and this forum didn't yield any obvious answers, possibly due to my use of inaccurate search terminology. Here goes:
1. how can I display only lines which match a certain search string (or pattern) ?
i.e. Show only lines with contain the string "MyLogEntry:"
2. how can I restrict the display content to only those lines which do not meet some exclusion content?
Ideally I'd be able to add and remove display filter restrictions dynamically.
i.e. Only show lines which do not contain the string "ComponentA:" nor the string "ComponentD:" nor the string "ComponentZ:"
In both of these cases I'd like to maintain the buffer's gutter and the ability display the original line numbers.
Is there a standard jEdit means of doing this?
Any guidance would be appreciated.
1. how can I display only lines which match a certain search string (or pattern) ?
i.e. Show only lines with contain the string "MyLogEntry:"
2. how can I restrict the display content to only those lines which do not meet some exclusion content?
Ideally I'd be able to add and remove display filter restrictions dynamically.
i.e. Only show lines which do not contain the string "ComponentA:" nor the string "ComponentD:" nor the string "ComponentZ:"
In both of these cases I'd like to maintain the buffer's gutter and the ability display the original line numbers.
Is there a standard jEdit means of doing this?
Any guidance would be appreciated.