I have a script that is only able to capture one line at a time - I need it to be able to capture ALL of my data between the quotes.
Here is the script:
-----------------------------------------------------------
my $description = '';
if ($record =~ /^\s+DESCRIPTION\n\s+"(.*?)"$/m) {
$description = $1;
} else {
print OUTFILE "Error: Description not found in record - $record";
}
-----------------------------------------------------------
This is an example of what one of the records look like that I'm grabbing:
-----------------------------------------------------------
"This trap signifies that the SonicWALL appliance is re-initializing itself
such that neither the agent configuration nor the appliance
implementation is altered. "
-----------------------------------------------------------
Here is the script:
-----------------------------------------------------------
my $description = '';
if ($record =~ /^\s+DESCRIPTION\n\s+"(.*?)"$/m) {
$description = $1;
} else {
print OUTFILE "Error: Description not found in record - $record";
}
-----------------------------------------------------------
This is an example of what one of the records look like that I'm grabbing:
-----------------------------------------------------------
"This trap signifies that the SonicWALL appliance is re-initializing itself
such that neither the agent configuration nor the appliance
implementation is altered. "
-----------------------------------------------------------