Link to home
Start Free TrialLog in
Avatar of Begunix
Begunix

asked on

perl script to extract lines.

File test.csv in following format

cool dude!
be frank
"jumbo jet","A370"
airbus,from,UK
Boeing,from,US
"fly","with"
whatsup
c ya

Please suggest Perl script to extract lines between"jumbo jet","A370" and "fly","with" and output to file called output.csv
output.csv should be as given below.

airbus,from,UK
Boeing,from,US
ASKER CERTIFIED SOLUTION
Avatar of ozo
ozo
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Begunix
Begunix

ASKER

Thanks for the reply.
But instead of one liner code, how to achieve the desired result by reading the file.
open(TXT,"text.csv)
while(<TXT>)
{
...

}

Thanks
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial