LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   output one page at a time in shell scripting (https://www.linuxquestions.org/questions/linux-software-2/output-one-page-at-a-time-in-shell-scripting-399684/)

sailu_mvn 01-04-2006 11:51 PM

output one page at a time in shell scripting
 
I have written a shell script.....
Its 500 lines long.
when i execute the my script, all the data i have given in the echo command is not visible and the page gets loaded with the options after echo.
I think its getting page down.
How to stop it?
I want all my echo's coming. Its really important for the script.
What to do?
any ideas?

MensaWater 01-06-2006 08:51 AM

?

echo simply outputs to stdout (typically the display):

e.g. echo "Hello"
Results in:
Hello

Are you saying you have 500 echo lines or that you have one echo that is trying to do 500 lines?

Unless you're piping the echo into something else it doesn't have any impact on your script. Your script will either echo or not echo then do the next step.

Are you putting quotes around what you wish to echo (see "Hello" above)?

Are you trying to echo the output of a command?
e.g. echo date
Results in:
date

however:
echo `date`
would echo the current date/time.

Matir 01-06-2006 02:04 PM

If you want paged output, use a pager utility like 'less' or 'more'.


All times are GMT -5. The time now is 05:33 PM.