Sample Header Ad - 728x90

Horizontal scrolling in smaller increments with less -S

51 votes
5 answers
17779 views
I'm using less to parse HTTP access logs. I want to view everything neatly on single lines, so I'm using -S. The problem I have is that the first third of my terminal window is taken up with metadata that I don't care about. When I use my arrow keys to scroll right, I find that it scrolls past the start of the information that I do care about! I could just delete the start of each line, but I don't know if I may need that data in the future, and I'd rather not have to maintain separate files or run a script each time I want to view some logs. ### Example This line: > access.log00002:10.0.0.0 - USER_X [07/Nov/2013:16:50:50 +0000] "GET /some/long/URL" Would scroll to: ng/URL" ### Question Is there a way I can scroll in smaller increments, either by character or by word?
Asked by Mike (851 rep)
Nov 25, 2014, 04:32 PM
Last activity: Apr 8, 2025, 01:04 PM