
ghosh23
New User
Dec 7, 2010, 11:48 PM
Post #1 of 1
(2570 views)
|
|
An interesting Perl problem to extract file content
|
Can't Post
|
|
Hi everybody..Here's an interesting problem to solve. I have a text file like this ( attached). Now I want Both >first and >firsta containing same characters except the part with hyphens. Now is it possible to write a perl script that would extract the text starting after >firsta and before the start of - for each line? Also, would it be possible to extract the unmatched text from >first? Please note that both >first and >firsta are in the same text file and other similar text files which I am using might contain more lines like these. Thanks a lot in advance..
|