Hi everybody. You guys were great yesterday so I am back for more.
Anyway, can somebody help me out with this one. I am trying to grab multiple lines of info from something like this:
11111111.START_fhsaf
kdjfkajsdlkf
kjdkfj
skdjksjd
aaaaaaaa_END_dkjfkjd
111111111.START_fhsaf
kdjfkajsdlkf...
I have a file sort of like the one below. What I need to do is look for a pattern(START) and copy everything up until END. The delimeter is always a number with one decimal place and followed by a blank line. It is exactly for looking for data in a program we use for genome parsing...
All that does is write the first pattern to the file. I need everything from the first time I see that pattern until the first empty line (new paragraph). I am not that great at this stuff and my brain hurts right now. Thanks for everything so far and anything in the future.
I am trying to print out lines from a file into another file based on a couple of patterns. I sort of can do it from the command line using "perl -ne '/START/ .. /END/' INfile", but I am trying to put it into a more user friendly script. Anyway I can't figure out how to do it inside a perl...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.