Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #32018
| References | <9ae3b43a-5c69-4232-a1cf-e2dd0c4ee2ca@googlegroups.com> <50879e26$0$29882$c3e8da3$5496439d@news.astraweb.com> |
|---|---|
| Date | 2012-10-24 04:02 -0400 |
| Subject | Re: Split single file into multiple files based on patterns |
| From | David Hutto <dwightdhutto@gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.2740.1351065740.27098.python-list@python.org> (permalink) |
On Wed, Oct 24, 2012 at 3:52 AM, Steven D'Aprano <steve+comp.lang.python@pearwood.info> wrote: > On Tue, 23 Oct 2012 20:01:03 -0700, satyam wrote: > >> I have a text file like this >> >> A1980JE39300007 2732 4195 12.527000 > [...] > >> 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. > > Are you just excited and want to tell everyone, or do you actually have a > question? > > Have you tried to write some code, or do you just expect others to do > your work for you? > > If so, I see that your expectation was correct. > > > > -- > Steven Some learn better with a full example, better than any small challenge that can be thrown in at certain times. I think it should be a little of both, especially if you (an algorithmitist for the OP)only have enough time to throw out untested pseudo code. -- Best Regards, David Hutto CEO: http://www.hitwebdevelopment.com
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