Hi Experts,
I have csv file and it has 4 columns , unfortunately it has data like
"abc", "123", "res","vg"
"abc", "123", "res","vg"
"abc", "123", "res
"abc", "123", "res
"abc", "123", "res","vg"
"abc", "123", "res","vg"
Now everything works fine with csv filter but problem is with line number 3 and 4
- it does not have all 4 fields
- Line is ending with "res
I want to drop all the lines which ends with "res , please suggest how I can achieve this
I tried following methods but getting same
if [message] == '"res\n'
{
drop { }
}
if [message] == 'res\n'
{
drop { }
}
if [message] == '("res\n)'
{
drop { }
}
**In both the Cases Error is same **
:exception=>#<CSV::MalformedCSVError: Unclosed quoted field on line 1.>
`
Regards
VG