Re: Split file into several and reformat

2007-06-21 Thread Gabriel Genellina
En Thu, 21 Jun 2007 02:45:38 -0300, <[EMAIL PROTECTED]> escribió: > I want to take read an input file (sels.txt) that looks like: > > Begin sels >sel1 = {1001, 1002, 1003, ... >... >1099} > >sel2 = {1001, 1008, 1009 ... >... >1299} > End sels

Re: Split file into several and reformat

2007-06-21 Thread Amit Khemka
On 6/21/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Hi, > > I want to take read an input file (sels.txt) that looks like: > > Begin sels >sel1 = {1001, 1002, 1003, ... >... >1099} > >sel2 = {1001, 1008, 1009 ... >... >1299} > End sels >

Re: Split file into several and reformat

2007-06-21 Thread Neil Cerutti
On 2007-06-21, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Hi, > > I want to take read an input file (sels.txt) that looks like: > > Begin sels >sel1 = {1001, 1002, 1003, ... >... >1099} > >sel2 = {1001, 1008, 1009 ... >... >1299} > End sel

Re: Split file into several and reformat

2007-06-21 Thread half . italian
On Jun 20, 10:45 pm, [EMAIL PROTECTED] wrote: > Hi, > > I want to take read an input file (sels.txt) that looks like: > > Begin sels >sel1 = {1001, 1002, 1003, ... >... >1099} > >sel2 = {1001, 1008, 1009 ... >... >1299} > End sels > > And turn

Re: Split file into several and reformat

2007-06-21 Thread Bruno Desthuilliers
[EMAIL PROTECTED] a écrit : > Hi, > > I want to take read an input file (sels.txt) that looks like: > (snip) > > And turn it into an output file for each of the "sels" in the input file, i.e > sel1.txt: > (snip) > and sel2.txt: > (snip) > And so on. Yes, fine. All this is documented here:

Split file into several and reformat

2007-06-20 Thread bomber71
Hi, I want to take read an input file (sels.txt) that looks like: Begin sels sel1 = {1001, 1002, 1003, ... ... 1099} sel2 = {1001, 1008, 1009 ... ... 1299} End sels And turn it into an output file for each of the "sels" in the input file, i.e se