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


Groups > comp.lang.python > #19230

Re: Splitting a file from specific column content

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder2.enfer-du-nord.net!tudelft.nl!txtfeed1.tudelft.nl!multikabel.net!newsfeed20.multikabel.net!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <roy@panix.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.007
X-Spam-Evidence '*H*': 0.99; '*S*': 0.00; 'oh,': 0.09; 'to:addr:python.list': 0.09; 'to:addr:tim.thechases.com': 0.09; 'to:name:tim chase': 0.09; ';-)': 0.12; 'subject:file': 0.13; 'cc:addr:python-list': 0.15; 'received:10.0.1.2': 0.16; 'received:166.84': 0.16; 'received:166.84.1': 0.16; 'received:166.84.1.89': 0.16; 'received:mailbackend.panix.com': 0.16; 'received:panix.com': 0.16; 'roy': 0.16; 'wrote:': 0.16; '>>>': 0.18; 'jan': 0.19; 'cc:no real name:2**0': 0.21; 'header :In-Reply-To:1': 0.22; 'received:166': 0.23; 'cc:2**0': 0.25; 'pm,': 0.26; 'tools,': 0.28; 'pass': 0.28; 'cc:addr:python.org': 0.29; '22,': 0.30; 'x-mailer:apple mail (2.1084)': 0.30; 'charset :us-ascii': 0.36; 'using': 0.37; 'received:10.0.1': 0.38; 'subject:from': 0.39; 'subject:: ': 0.39; 'header:Message-Id:1': 0.62; 'back': 0.62; 'stand': 0.72; '2012,': 0.84; 'subject:content': 0.84; 'hair': 0.91; 'grey': 0.96
Subject Re: Splitting a file from specific column content
Mime-Version 1.0 (Apple Message framework v1084)
Content-Type text/plain; charset=us-ascii
From Roy Smith <roy@panix.com>
In-Reply-To <4F1C64C7.5020200@tim.thechases.com>
Date Sun, 22 Jan 2012 14:37:29 -0500
Content-Transfer-Encoding quoted-printable
References <e1f0636a-195c-4fbb-931a-4d619d5f0d18@g27g2000yqa.googlegroups.com> <roy-125359.09450822012012@news.panix.com> <4F1C628F.1000105@tim.thechases.com> <E563D8F5-4A4F-49D6-9EC8-BAC20EF835CE@panix.com> <4F1C64C7.5020200@tim.thechases.com>
To Tim Chase <python.list@tim.thechases.com>
X-Mailer Apple Mail (2.1084)
Cc python-list@python.org
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.12
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.4935.1327261051.27778.python-list@python.org> (permalink)
Lines 25
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1327261051 news.xs4all.nl 6952 [2001:888:2000:d::a6]:58077
X-Complaints-To abuse@xs4all.nl
Xref x330-a1.tempe.blueboxinc.net comp.lang.python:19230

Show key headers only | View raw


On Jan 22, 2012, at 2:34 PM, Tim Chase wrote:

> On 01/22/12 13:26, Roy Smith wrote:
>>> If you wanted to do it in one pass using standard unix
>>> tools, you can use:
>>> 
>>> sed -n -e'/^[0-2]/w first-three.txt' -e'/^[34]/w
>>> next-two.txt' -e'/^[5-7]/w next-three.txt'
>>> 
>> I stand humbled.
> 
> In all likelyhood, you stand *younger*, not so much humbled ;-)


Oh, yeah?  That must explain my grey hair and bifocals.   I go back to Unix v6 in 1977.  Humbled it is.



--
Roy Smith
roy@panix.com


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


Thread

Splitting a file from specific column content Yigit Turgut <y.turgut@gmail.com> - 2012-01-22 06:32 -0800
  Re: Splitting a file from specific column content Roy Smith <roy@panix.com> - 2012-01-22 09:45 -0500
    Re: Splitting a file from specific column content Roy Smith <roy@panix.com> - 2012-01-22 14:26 -0500
    Re: Splitting a file from specific column content Tim Chase <python.list@tim.thechases.com> - 2012-01-22 13:34 -0600
    Re: Splitting a file from specific column content Roy Smith <roy@panix.com> - 2012-01-22 14:37 -0500
      Re: Splitting a file from specific column content Yigit Turgut <y.turgut@gmail.com> - 2012-01-22 12:16 -0800
  Re: Splitting a file from specific column content MRAB <python@mrabarnett.plus.com> - 2012-01-22 15:19 +0000
  Re: Splitting a file from specific column content Arnaud Delobelle <arnodel@gmail.com> - 2012-01-22 15:39 +0000
    Re: Splitting a file from specific column content Yigit Turgut <y.turgut@gmail.com> - 2012-01-22 08:17 -0800
      Re: Splitting a file from specific column content MRAB <python@mrabarnett.plus.com> - 2012-01-22 16:56 +0000
        Re: Splitting a file from specific column content Yigit Turgut <y.turgut@gmail.com> - 2012-01-22 09:47 -0800
    Re: Splitting a file from specific column content Eelco <hoogendoorn.eelco@gmail.com> - 2012-01-22 12:43 -0800
  Re: Splitting a file from specific column content MRAB <python@mrabarnett.plus.com> - 2012-01-22 16:09 +0000
  Re: Splitting a file from specific column content Arnaud Delobelle <arnodel@gmail.com> - 2012-01-22 19:58 +0000
  Re: Splitting a file from specific column content MRAB <python@mrabarnett.plus.com> - 2012-01-22 20:55 +0000

csiph-web