You can control the screen scroll in more command output using -f, -c, and -p options.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
## control the screen scroll ## create a file with long lines > myfile; i=1; while [ $i -le 40 ]; \ do echo "$i" >> myfile; ((i++)); done ps -ax | sed 's/[^A-Za-z0-9]//g' | tr -d '[ \n]' >> myfile ps -ax | sed 's/[^A-Za-z0-9]//g' | tr -d '[ \n]' >> myfile echo -e "\n" >> myfile i=41; while [ $i -le 100 ]; \ do echo "$i" >> myfile; ((i++)); done ## hit space bar to display one screenful at a time and see the difference in behaviour more myfile ## normal output more -f myfile ## count logical rather than screen lines more -c myfile ## do not scroll, display text and clean line ends more -p myfile ## do not scroll, clean screen and display text rm myfile |