Re: Extract same text from file.

From: Tore Aursand (tore_at_aursand.no)
Date: 08/16/04


Date: Mon, 16 Aug 2004 12:06:10 +0200

On Mon, 16 Aug 2004 02:44:31 -0700, Ryan Keeling wrote:
> I have the following text file which I want to use to populate text
> files containing data only relevant to a particular project. Is it
> possible for me to group similar lines together and put them in their
> own text file? Such as a file containing all entries for
> MS102_PCP.Implementation and another file for MS102_PCP.Support.
>
> 2004:01:07:3:02:MS102_PCP:Belfast:Charge:PCP:Implementation:+:5.5
> 2004:01:07:3:02:MS102_PCP:Belfast:Charge:PCP:Support:+:2.0
> 2004:01:05:1:02:MS102_PCP:Belfast:Charge:PCP:Implementation:+:7.5
> [...]

Yes, it is _very_ possible. What have you tried so far? You want to look
into 'perldoc -f split', for example.

-- 
Tore Aursand <tore@aursand.no>
"A teacher is never a giver of truth - he is a guide, a pointer to the
 truth that each student must find for himself. A good teacher is
 merely a catalyst." (Bruce Lee)


Relevant Pages

  • Re: Reading last N lines from large file
    ... "A teacher is never a giver of truth - he is a guide, a pointer to the truth that each student must find for himself. ... A good teacher is merely a catalyst." ... (Bruce Lee) ...
    (comp.lang.perl.misc)
  • Re: Any Falsely Accused Sex Offenders Wish to Share Their Story?
    ... ronniecat wrote: ... truth, the whole truth and nothing but the truth but instead wrote: ... |>|student teacher - and despised it so much I switched out the B.Ed ... |>your partial quote leaves a different impression. ...
    (alt.true-crime)
  • Re: Jiddu Krishnamurti y Who Brings the Truth?.
    ... Who Brings the Truth? ... Teacher meant to me and what the Truth was behind the form of the ... Krishnamurti, was the vehicle of the World-Teacher because many people ...
    (talk.religion.buddhism)
  • Re: Jiddu Krishnamurti y Who Brings the Truth?.
    ... Who Brings the Truth? ... Teacher meant to me and what the Truth was behind the form of the ... Krishnamurti, was the vehicle of the World-Teacher because many people ...
    (talk.religion.buddhism)
  • Jiddu Krishnamurti y Who Brings the Truth?.
    ... Jiddu Krishnamurti y Who Brings the Truth?. ... Teacher meant to me and what the Truth was behind the form of the ... was the vehicle of the World-Teacher because many people ...
    (talk.religion.buddhism)