Find the answer to your Linux question:
Results 1 to 4 of 4
hi all.. Is there any text viewer highlighting some user-specific text.? for example, I need to check up a log file which has a thousand of lines of text message. ...
  1. #1
    Just Joined!
    Join Date
    Dec 2006
    Posts
    10

    I am looking for a text viewer with highlighting

    hi all..

    Is there any text viewer highlighting some user-specific text.?

    for example, I need to check up a log file which has a thousand of lines of text message.

    But what I want to see is just error messages. so I want to highlight them to recognize more easily.

    What kind of app should I get?

    I am using SuSE 10.0.

    Thanks.

  2. #2
    drl
    drl is offline
    Linux Engineer drl's Avatar
    Join Date
    Apr 2006
    Location
    Saint Paul, MN, USA / CentOS, Debian, Solaris, SuSE
    Posts
    1,117
    Hi.

    There is an option in grep to color (colour) the hits. In a reasonably standard terminal emulator, these should show up ... cheers, drl
    --colour[=WHEN], --color[=WHEN]
    Surround the matching string with the marker find in GREP_COLOR
    environment variable. WHEN may be `never', `always', or ` -- man grep
    Welcome - get the most out of the forum by reading forum basics and guidelines: click here.
    90% of questions can be answered by using man pages, Quick Search, Advanced Search, Google search, Wikipedia.
    We look forward to helping you with the challenge of the other 10%.
    ( Mn, 2.6.n, AMD-64 3000+, ASUS A8V Deluxe, 1 GB, SATA + IDE, Matrox G400 AGP )

  3. #3
    drl
    drl is offline
    Linux Engineer drl's Avatar
    Join Date
    Apr 2006
    Location
    Saint Paul, MN, USA / CentOS, Debian, Solaris, SuSE
    Posts
    1,117
    Hi.

    As an after-thought, if you need context, grep allows you to request the display of lines before and after the matching lines -- details in man grep.

    If you need the entire file listed with specific lines high-lighted you may be able to get some code and ideas from the thread at http://www.linuxquestions.org/questi...d.php?t=507423 ... cheers, drl
    Welcome - get the most out of the forum by reading forum basics and guidelines: click here.
    90% of questions can be answered by using man pages, Quick Search, Advanced Search, Google search, Wikipedia.
    We look forward to helping you with the challenge of the other 10%.
    ( Mn, 2.6.n, AMD-64 3000+, ASUS A8V Deluxe, 1 GB, SATA + IDE, Matrox G400 AGP )

  4. #4
    Just Joined! placeb0's Avatar
    Join Date
    Dec 2006
    Location
    Cape Town, South Africa
    Posts
    16
    vi and vim can do highlighted text, last time I checked :P

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...