"Paging" in a shell script?

Status
Not open for further replies.

Z300M

Guru
Joined
Sep 9, 2011
Messages
882
I have a shell script that displays drive information, but there is too much information to fit on one screen, so I have to run it with "| more". Is there any way of modifying the script itself so that it displays only one screenful at a time without the "| more"?
 

Ericloewe

Server Wrangler
Moderator
Joined
Feb 15, 2014
Messages
20,194
A second script that invokes ./script1 | more/less ?

Somewhat silly, but it should work.
 

Bidule0hm

Server Electronics Sorcerer
Joined
Aug 5, 2013
Messages
3,710
Think to the alias (if you can use them is your case) ;)
 
Status
Not open for further replies.
Top