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? |
?
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. |
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. |