Find the answer to your Linux question:
Results 1 to 2 of 2
Hi, I have vey large log files on remote servers to view(not to edit), if I open them in vi/vim/emacs it takes huge time and sometimes hangs. Less is more ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Apr 2008
    Posts
    3

    How to customize less command


    Hi,
    I have vey large log files on remote servers to view(not to edit), if I open them in vi/vim/emacs it takes huge time and sometimes hangs. Less is more comfortable, but I want it to be customized as follows. When I search for a word it gets highlighted in black,

    1)can I change the color?
    when I search for other word the previous search highlights gets cleared and the new word gets highlighted(if found).
    2)Can I keep the old search word highlighted while highlighting new search word in a different color?
    3)I have XML in logs files can I fold and unfold those XML tags in less.

    Please advise me or give some references to go through (I googled a lot but couldn’t find).
    Last edited by devils casper; 04-06-2008 at 10:52 AM. Reason: removed Bold tags.

  2. #2
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    Hi dev.mighty !

    Welcome to the LinuxForums.

    Duplicate threads are not allowed here. Its against Forum Rules. I have deleted all duplicate threads posted by you. Please continue here only.
    Locked.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

Posting Permissions

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