Re: OT: a problem about text manipulation



On Tue, 2006-10-31 at 10:25 +0000, Paul Smith wrote:

I have a text file with more than 300000 of lines like the following:

1 E E E
2 C D
3 B E D
4 C E D
5 D E

I am looking for an automatic way of transforming my text file into
another one with the format

1 E
1 E
1 E
2 C
2 C
3 B
3 B
3 D
4 C
4 C
4 D
5 E

Any ideas?

Thanks in advance,

Something seems funky there. The desired output doesn't match the
input data. Can you describe in a general way what it is you are trying
to do?

--
Boring Home Page - http://www.webtrek.com/joe
See my blog, sumo game ranks and other interesting junk

--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list



Relevant Pages

  • Skipping Records in a Transform
    ... I have a document that contains sales transactions in a format similar to ... When transforming this data, I'd like to skip any Trans elements that have ... ProMetrics Consulting, Inc. ...
    (microsoft.public.biztalk.general)
  • Re: reformat the output
    ... I made a little mistake, ... Original output: ... I really want to convert to following format: ... Desired Output: ...
    (microsoft.public.sqlserver.programming)
  • Re: Date Conversion
    ... my desired output is: 0725 ... this is because i have to load into a table in the format MMDD ... But you can take the format above and convert it to a date datatype with the TO_DATE function. ...
    (comp.databases.oracle.tools)
  • Re: Outlook Signatures
    ... > someone replies to me my signature is all funky. ... > reason for this? ... Outlook always uses the format of the original message when replying. ...
    (microsoft.public.outlook.general)
  • Re: GetType question
    ... Can you clarify what Type.AssemblyQualifiedName is giving you that you don't ... perhaps with an example of your desired output? ... assembly in format of full name, ... Me.GetTypegets me the fullname ...
    (microsoft.public.dotnet.languages.vb)