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 ...
- 04-06-2008 #1Just 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 11:52 AM. Reason: removed Bold tags.
- 04-06-2008 #2
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



