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
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
But instead of one liner code, how to achieve the desired result by reading the file.
open(TXT,"text.csv)
while(<TXT>)
{
...
}
Thanks