I need to print every record whose first field begins with a double quotation.
I began by trying to set my Record Separator as any word with a quotation in it. (since quotes appear later in the record also)
I can't seem to match the quotation in the $1.
The text looks like this:
Wards Room Source Site
"SMITH, JOHN L 01/30/02 373369 040618 EM
Here is what I have:
Begin { RS = "\" *[[:upper]]+ " }
$1 ~ /^\"/ { print $0 > "mfinal.txt" }
Thanks for looking
I began by trying to set my Record Separator as any word with a quotation in it. (since quotes appear later in the record also)
I can't seem to match the quotation in the $1.
The text looks like this:
Wards Room Source Site
"SMITH, JOHN L 01/30/02 373369 040618 EM
Here is what I have:
Begin { RS = "\" *[[:upper]]+ " }
$1 ~ /^\"/ { print $0 > "mfinal.txt" }
Thanks for looking