Apologizes for answering so late, but I've been quite busy.
Thank you all for showing me some alternatives to "less"
. I had already discarded using "more" because is very limited for my use. But these days I've been doing some experiments with "most".
I've liked it. It has some features that "less" lacks, such as splitting the window, which may be really useful.
This program effectively marks the lines that have been wrapped. What's the problem? That it marks them in the right-most column instead of the left-most column. If you're reading a language that flows from left to right, it's little useful. Because it costs to skip lines quickly. It's a shame, because "most" has some features that are very useful. If I could change the location of that column...
With regard to your solution, Hydrurga, I like it. But I would prefer something that highlighted the line starts. Because, when you're printing the results of a database query, for example, the line numbers mixes with the real numbers of the output and it's complicated to read it.
Just this morning, I've thought about a solution that allows me to highlight each line start. And it seems to work well with the 3 mentioned pagers. It consists in using Perl to inject a coloured marker at the start of each line:
Code:
perl -pe 's/^/\e[01;31m> \e[00m/' <my_file> | less -R
This adds a red bigger-than symbol and a white space, at the start of each line.
Then, with "less", I could even set the LESSOPEN variable to this value, so that it marked the line starts by default:
Code:
export LESSOPEN='|perl -pe "s/^/\\e[01;31m> \\e[00m/" %s'
Thank you.