Limit Lines of Output

Joel Goldstick joel.goldstick at gmail.com
Tue Jun 25 16:18:56 EDT 2013


On Tue, Jun 25, 2013 at 4:09 PM, Bryan Britten <britten.bryan at gmail.com>wrote:

> Hey, group, quick (I hope) question:
>
> I've got a simple script that counts the number of words in a data set
> (it's more complicated than that, but that's one of the functions), but
> there are so many words that the output is too much to see in the command
> prompt window. What I'd like to be able to do is incorporate the "More..."
> feature that help libraries have, but I have no idea how to do it. I also
> don't know if I'm asking the question correctly because a Google search
> yielding nothing.
>
> Any insight would be appreciated. Thanks!
> --
> http://mail.python.org/mailman/listinfo/python-list
>

If you are using linux, you should look up the comand 'less'.  It allows
you to page thru a test file.  You can either write your list to a file or
pipe it into less (haven't tried that myself)

-- 
Joel Goldstick
http://joelgoldstick.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20130625/a0f11cc1/attachment.html>


More information about the Python-list mailing list