Search on a particular column
Hi Guys,
I like to search on a particular column for a string.
This is my file
503018," 215/55HR18 BSW","Y"," ",20080204,20080204," ","T2456GH"
503019," 215/60HR17 BSW","Y"," ",20080204,20080204," ","T2456GH"
503020," 225/55R19 BSW","Y"," ",20080204,20080204," ","T2456GH"
505023," 225/60R18 BSW","Y"," ",20080409,20080410," ","T2456GH"
503021," 225/65R16 BSW","Y"," ",20080204,20080204," ","T2456GH"
503022," 225/65R17 BSW","Y"," ",20080204,20080204," ","T2456GH"
477513," 225/70R19.5 BSW","Y"," ",20041027,20080227," ","T2456GH"
505022," 245/45R20 BSW","Y"," ",20080409,20080410," ","T2456GH"
506344," 245/45ZR20 BSW","Y"," ",20080617,20080619," ","T2456GH"
I want to search on the 3rd column for "N" value.
i tried this..but it was not giving me the desired output as i changed the N to Y to check whether it is working or not.
nawk -F "," ' $3 == "Y" ' Src_NPI_eznndsc_intial.unl
I also tried this..
awk '$3 ~ /"N"/' Src_NPI_eznndsc_intial.unl
Please correct me where i went wrong..
Thanks for the help in advance,,
Regards,
Magesh