On 23/11/06, Penedo <[EMAIL PROTECTED]> wrote:
On 23/11/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> tail -f /var/log/syslog |grep something |grep -v but-not-this |less
Make it "| less -F +/re-to-highlight" so you can always ^C to scroll
back through the output then type "F" again to get back to the bottom
and tail from there.
Not sure about the 'less -F'. In my version '-F' is different to 'F'
- the latter being pressed after less is up and running. 'F' works
like 'tail -f' but 'less -F' does something else. I like using F not
least because you can search and highlight values.
But I couldn't get it to work like the 'tail -f ... | grep ... '
paradigm - ie using grep to filter on the lines: less -<some_switch> |
grep
Daniel
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html