perl_new2011 has asked for the wisdom of the Perl Monks concerning the following question:
and so on Now file 2 looks like this:ABCDEFG0098GHT J19.17 ABCDEFG0141314 J19.1 ABCDEFGQQ76890 WOK2234 ABCDEFG0Y56421 POK1 ABCDEFG00Z7657 FVT1
Now I want to compare these two files. I specifically want to compare first column data of file 1 with that of the text present after the > sign in file 2 (data like ABCDEFG0098GHT). I only want to keep those data in file 2, that matches with POK or WOK in file 1. Can any body please help>ABCDEFG0098GHT ATTATGCGCGCGCTCGCTGCTCG >ABCDEFG0098GHT ATTATGCGCGCGCTCGCTGCTCG >ABCDEFGQQ76890 TAGACAGATAGACAGATGACAGAT
20110113 Janitored by Corion: Added formatting, code tags, as per Writeup Formatting Tips
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: file comparision and parsing
by Utilitarian (Vicar) on Jan 11, 2011 at 12:03 UTC | |
|
Re: file comparision and parsing
by fisher (Priest) on Jan 11, 2011 at 09:56 UTC | |
|
Re: file comparision and parsing
by umasuresh (Hermit) on Jan 11, 2011 at 19:08 UTC |