Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #49185

Re: Limit Lines of Output

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!multikabel.net!newsfeed20.multikabel.net!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <joel.goldstick@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.067
X-Spam-Evidence '*H*': 0.87; '*S*': 0.00; 'output': 0.05; 'linux,': 0.07; 'window.': 0.09; 'cc:addr:python-list': 0.11; "(it's": 0.16; 'bryan': 0.16; 'subject:Lines': 0.16; 'wrote:': 0.18; 'command': 0.22; 'email addr:gmail.com&gt;': 0.22; 'cc:addr:python.org': 0.22; 'file.': 0.24; 'question': 0.24; 'cc:2**0': 0.24; "i've": 0.25; 'script': 0.25; 'asking': 0.27; 'header:In-Reply-To:1': 0.27; 'tried': 0.27; 'idea': 0.28; 'appreciated.': 0.29; 'feature': 0.29; 'words': 0.29; 'have,': 0.30; 'message- id:@mail.gmail.com': 0.30; "i'm": 0.30; 'url:mailman': 0.30; '25,': 0.31; 'libraries': 0.31; 'pipe': 0.31; 'question:': 0.31; 'allows': 0.31; 'file': 0.32; 'thanks!': 0.32; 'url:python': 0.33; "i'd": 0.34; 'test': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'google': 0.35; 'there': 0.35; 'url:listinfo': 0.36; 'url:org': 0.36; 'should': 0.36; 'too': 0.37; 'list': 0.37; 'skip:& 10': 0.38; 'pm,': 0.38; 'that,': 0.38; 'either': 0.39; 'url:mail': 0.40; 'how': 0.40; 'simple': 0.61; 'group,': 0.63; 'more': 0.64; 'to:addr:gmail.com': 0.65; 'incorporate': 0.68; 'insight': 0.68; 'prompt': 0.68; 'hey,': 0.75; 'counts': 0.83; 'myself)': 0.84; 'joel': 0.91; '2013': 0.98
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=029k3+whyjvrVCk7e8qWMQ5jtqwTMshI1+RnBTDiYXw=; b=RnjO7l0G1y36mvcZZOzRo9Ps54docxpETsMUbyRGAZyyT4J5zSJiKZ2oye1Khex5NC +dxpfjOikqmXiTkMZLzO0cKIhGLrBmPUBQKK5+sL1USVkvFSaYZtfUfvTUxoraYsLyeC ChLBIDgsNDUaQMWSOVlRgfEzNS2SxbfmtCNqyYo/lRx4LAJ2Yhi7zXlPB00WUbmn9+v+ TOX+7NKT1esPu5b+3Vlj4/jCTS7bLapoyDBZs6d14VZ7ifVNJjl12skC/snbhS/bSqEQ iNbVUubuZFNQL4tZwbIEAXDx1NppRyLl7rSERHrBULmx/TSXUw17feTTHSHYDz5CFQhF WiPw==
MIME-Version 1.0
X-Received by 10.220.164.138 with SMTP id e10mr441157vcy.27.1372191536623; Tue, 25 Jun 2013 13:18:56 -0700 (PDT)
In-Reply-To <0cb638ec-a4bd-4a45-b98c-a7c76996bab7@googlegroups.com>
References <0cb638ec-a4bd-4a45-b98c-a7c76996bab7@googlegroups.com>
Date Tue, 25 Jun 2013 16:18:56 -0400
Subject Re: Limit Lines of Output
From Joel Goldstick <joel.goldstick@gmail.com>
To Bryan Britten <britten.bryan@gmail.com>
Content-Type multipart/alternative; boundary=001a11c1dfbc1ab65504e0003df9
Cc "python-list@python.org" <python-list@python.org>
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.3844.1372191538.3114.python-list@python.org> (permalink)
Lines 63
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1372191538 news.xs4all.nl 15959 [2001:888:2000:d::a6]:57704
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:49185

Show key headers only | View raw


[Multipart message — attachments visible in raw view] - view raw

On Tue, Jun 25, 2013 at 4:09 PM, Bryan Britten <britten.bryan@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

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Limit Lines of Output Bryan Britten <britten.bryan@gmail.com> - 2013-06-25 13:09 -0700
  Re: Limit Lines of Output Joel Goldstick <joel.goldstick@gmail.com> - 2013-06-25 16:18 -0400
    Re: Limit Lines of Output Bryan Britten <britten.bryan@gmail.com> - 2013-06-25 13:22 -0700
      Re: Limit Lines of Output Joshua Landau <joshua.landau.ws@gmail.com> - 2013-06-25 21:31 +0100
      Re: Limit Lines of Output Joel Goldstick <joel.goldstick@gmail.com> - 2013-06-25 16:33 -0400
        Re: Limit Lines of Output Bryan Britten <britten.bryan@gmail.com> - 2013-06-25 13:37 -0700
          Re: Limit Lines of Output Dave Angel <davea@davea.name> - 2013-06-25 22:27 -0400
      Re: Limit Lines of Output Ian Kelly <ian.g.kelly@gmail.com> - 2013-06-25 14:39 -0600
        Re: Limit Lines of Output Alister <alister.ware@ntlworld.com> - 2013-06-26 11:41 +0000
      Re: Limit Lines of Output Gene Heskett <gheskett@wdtv.com> - 2013-06-25 17:48 -0400
      Re: Limit Lines of Output Joshua Landau <joshua.landau.ws@gmail.com> - 2013-06-26 16:24 +0100
        Re: Limit Lines of Output Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-06-26 16:46 +0000
          Re: Limit Lines of Output Joshua Landau <joshua.landau.ws@gmail.com> - 2013-06-26 23:07 +0100
        Re: Limit Lines of Output rusi <rustompmody@gmail.com> - 2013-06-26 10:09 -0700
          Re: Limit Lines of Output Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-06-26 23:57 +0000
            Re: Limit Lines of Output Joshua Landau <joshua.landau.ws@gmail.com> - 2013-06-27 13:54 +0100
      Re: Limit Lines of Output Chris Angelico <rosuav@gmail.com> - 2013-06-27 01:58 +1000

csiph-web