On 23/11/06, Daniel Bush <[EMAIL PROTECTED]> wrote:
Not sure about the 'less -F'.  In my version '-F' is different to 'F'

Sorry, I meant "+F" (i.e. treat the "F" as if the user typed it
interactively while "inside" less, another useful command is "+G").

- 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.

Same here.


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

Oh - that wouldn't work - what do you expect this to do? Make "less"
behave like "tail"? Then just use "tail". "less" isn't going to
magically highlight strings if its output isn't a terminal.
If you just want to highlight the matching strings in grep then you
can use the --colour option.

In my previous message I suggested to use "less" at the tail of the
line (pun intended), as an interactive viewer of the results.

Read grep(1) and less(1).

--P
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

Reply via email to