in reply to match pattern from two different file

any chance you could put the file contents in code tags? That might make this post readable... :-)

Update Reflecting on the code just a bit, have you looked at any of the perl docs?

if (whatever) { do something; } else { do the_other; }

...the majority is always wrong, and always the last to know about it...

Insanity: Doing the same thing over and over again and expecting different results...

A solution is nothing more than a clearly stated problem...otherwise, the problem is not a problem, it is a facct

Replies are listed 'Best First'.
Re^2: match pattern from two different file
by Anonymous Monk on Jun 20, 2014 at 06:23 UTC

    file1 contains

    LOC_Os01g01010.1 3017 : PAS 2993,3017 : AGTAAA AAATGGAGGAATTCTGCCA LOC_Os01g01010.2 2218 : uORF 7,129 : ATG AAGAAGACGAGACGACGACTTCCCCACTA +GGAAACACGACGGAGGCGGAGATGATC

    and file2 contains

    LOC_Os01g01010.1 : PS51373 HIPIP High potential iron-sulfur proteins f +amily profile. 2139 - 2208 AATGATTTATCATGTGAGGTGAAAGA-----AGAGCACCGGG +TGAACAGTTACACAAGAA L=-1 GAAAGTCCAAAAGCA LOC_Os01g01010.2 : PS00022 EGF_1 EGF-like domain signature 1. 298 - 30 +9 CtCccTtcGTtC L=(-1)

    I am trying to retrieve "LOC_Os01g01010*"(as whole file contains variation of naming but LOC_Os01g remains constant)

    yes, i did write once by giving condition with and that also didn't produce any result
    actually i have tried writing in so many ways, that it become all jumbled and now i don't know what should do