Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #31986
| Path | csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <jsf80238@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.006 |
| X-Spam-Evidence | '*H*': 0.99; '*S*': 0.00; 'subject:file': 0.07; 'subject:files': 0.09; 'subject:into': 0.09; 'cc:addr:python- list': 0.10; '3465': 0.16; 'generally?': 0.16; 'grouped': 0.16; 'received:209.85.216.53': 0.16; 'subject:based': 0.16; 'sender:addr:gmail.com': 0.18; 'cc:2**0': 0.23; 'split': 0.23; 'cc:no real name:2**0': 0.24; 'cc:addr:python.org': 0.25; 'header :In-Reply-To:1': 0.25; 'message-id:@mail.gmail.com': 0.27; 'file': 0.32; 'received:google.com': 0.34; 'text': 0.34; 'received:209.85': 0.35; 'received:209': 0.37; 'received:209.85.216': 0.37; 'data': 0.37; 'subject:: ': 0.38; 'files': 0.38; 'shows': 0.38; 'where': 0.40; 'header:Received:5': 0.40 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=03fPI1HfqgUMVS/h561rGKZgyLV6DR5wP/LZglalcZM=; b=VTgYZpb6xYjdbL0+UQ6XCNoD4OJgezjk2xq5AtzDYlgktehDpifbvmB347Cb4n//51 uDChoyiG8bqBVhX28b74KL629UwGZ0VxgzgSvWqbtVlnTwIXKhJXCB8th4Dc0NeWClxU 3Dmci+dIFpCEAflT2xnUdh9yaiJPMdhU30utQgakA/Y89gKqMjBxMD05UZJQoUuSdasv KWzEKEXL052PWd8JJ9+pAqup09IM476BpsiAC1iO7JQO4mCM2OQkX1n3mwHRSnDXDhsz 0vttt3EcKwA9HF5ePD1IX/Ab3O86yX6ir1REjxJku/DpMMAe39rTJcbQ1KIcBnma3BPY qzGA== |
| MIME-Version | 1.0 |
| Sender | jsf80238@gmail.com |
| In-Reply-To | <9ae3b43a-5c69-4232-a1cf-e2dd0c4ee2ca@googlegroups.com> |
| References | <9ae3b43a-5c69-4232-a1cf-e2dd0c4ee2ca@googlegroups.com> |
| Date | Tue, 23 Oct 2012 21:36:49 -0600 |
| X-Google-Sender-Auth | pyA549ybkX5qQah2vfBz7OgmdLE |
| Subject | Re: Split single file into multiple files based on patterns |
| From | Jason Friedman <jason@powerpull.net> |
| To | satyam <dirac.sat@gmail.com> |
| Content-Type | text/plain; charset=ISO-8859-1 |
| Cc | 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.2710.1351049812.27098.python-list@python.org> (permalink) |
| Lines | 14 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1351049812 news.xs4all.nl 6840 [2001:888:2000:d::a6]:52868 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:31986 |
Show key headers only | View raw
> I have a text file like this > > A1980JE39300007 2732 4195 12.527000 > A1980JE39300007 3465 9720 22.000000 > A1980KK18700010 186 3366 4.780000 > A1980KK18700010 30 186 1.285000 > A1980KK18700010 30 185 4.395000 > A1980KK18700010 185 186 9.000000 > A1980KK18700010 25 30 3.493000 > > I want to split the file and get multiple files like A1980JE39300007.txt and A1980KK18700010.txt, where each file will contain column2, 3 and 4. The sample data above shows the data grouped by file name. Will this be true generally?
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Split single file into multiple files based on patterns satyam <dirac.sat@gmail.com> - 2012-10-23 20:01 -0700
Re: Split single file into multiple files based on patterns Jason Friedman <jason@powerpull.net> - 2012-10-23 21:36 -0600
Re: Split single file into multiple files based on patterns Jason Friedman <jason@powerpull.net> - 2012-10-23 21:43 -0600
Re: Split single file into multiple files based on patterns David Hutto <dwightdhutto@gmail.com> - 2012-10-24 01:24 -0400
Re: Split single file into multiple files based on patterns Demian Brecht <demianbrecht@gmail.com> - 2012-10-23 22:36 -0700
Re: Split single file into multiple files based on patterns Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2012-10-24 01:38 -0400
Re: Split single file into multiple files based on patterns Alain Ketterlin <alain@dpt-info.u-strasbg.fr> - 2012-10-24 07:46 +0200
Re: Split single file into multiple files based on patterns Mark Lawrence <breamoreboy@yahoo.co.uk> - 2012-10-24 07:13 +0100
Re: Split single file into multiple files based on patterns Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2012-10-24 07:52 +0000
Re: Split single file into multiple files based on patterns David Hutto <dwightdhutto@gmail.com> - 2012-10-24 04:02 -0400
Re: Split single file into multiple files based on patterns Peter Otten <__peter__@web.de> - 2012-10-24 10:17 +0200
csiph-web