What is the difference between the two commands below?
more file-name
less file-name
What is the difference between the two commands below?
more file-name
less file-name
more is a filter for paging through text one screenful at a time
is said in man pages for more
. Is there a way to page through text, but instead of getting to the next page, the procedure will get to the next occurance of a string supplied via a parameter? The first time it will display the first occurance of the string (at the top of the screen) let's say, STRING1
. The next time I press the SPACE bar, the crt
display will show the line of the next occurance of string STRING1
, etc.
I'm trying to watch dmesg
output in (initramfs) but command output has more lines than a screen. So I see only the end of dmesg
output.
Busybox v1.21.1 has more
command, but dmesg | more
somehow doesn't work as expected (it shows complete output without possibility scroll).
Why it doesn't work and are there any other ways in initramfs to watch dmesg
output?