less, the output is paused at the end of each page.
Is there some way to have it pause only for a few seconds (configurable or not), and then continue to the next page? Is there some other tool that can do it?
I remember playing with something like that in the MS-DOS age. Cute, but very unpractical.
But just as an exercise in strange things:
#!/bin/bash while read do echo "$REPLY" sleep 1s done
Save it as 'scroll' and use
scroll < textfile
If you want to do a page-by-page scroll, you can use
tput to determine how many rows there is in a terminal.
#!/bin/bash while read do lines=`tput lines` while [ $lines -gt 0 ] do echo "$REPLY" read lines=$(( $lines - 1 )) done sleep 1s done