Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: How to extract lines starting with new names/words

by Thilosophy (Curate)
on Mar 13, 2008 at 08:47 UTC ( [id://673924]=note: print w/replies, xml ) Need Help??


in reply to How to extract lines starting with new names/words

I believe moritz's script will do what you want, but your expected output is confusing:
MA01001A1A03.f1 760 5640111 ad1 MA01001A1A04.f1 300 15232924 ubq MA01001A1B22.f1 580 77745475 ra
Should not the second line list the first occurrence of ubq? And what happened to DNA?
MA01001A1A03.f1 760 5640111 ad1 MA01001A1A03.f1 760 42572233 ubq MA01001A1A04.f1 300 145334669 DNA MA01001A1B22.f1 580 77745475 ra

Update: Ah, yes...
As moritz points out (in more polite words) below, I am an idiot. Or tired. I repent, expect swift and adequate punishment, and demand this node be voted down to about -5. (but not much more. please)

Replies are listed 'Best First'.
Re^2: How to extract lines starting with new names/words
by moritz (Cardinal) on Mar 13, 2008 at 08:58 UTC
    but your expected output is confusing:

    I found that the expected output matches the description very well.

    Should not the second line list the first occurrence of ubq?

    no, because they both start with MA01001A1A03.f1

    And what happened to DNA?
    it starts with the same word as the third line.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://673924]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (4)
As of 2024-03-28 15:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found