Hi All,
I have a file having data like the following one..
1234#5456#545#123ASD12#ASCV#ANM#AS45#3AP67
1234#513#7525#11ASD3#ASV##A74#3AP68
123#8858#7744#ASD9955#ACV#FT###
31###VDM#VM#AC#ASD#3A45
1234#1111#0000#VC#AA#12ASD52#A85#3B55
#####ASD11#C34#02B5
I need to extract all lines which have an occurence of ASD in its forth field. All lines in which ASD occurs in any other field must be discarded.
so my output for above lines of input should be..
1234#5456#545#123ASD12#ASCV#ANM#AS45#3AP67
1234#513#7525#11ASD3#ASV##A74#3AP68
123#8858#7744#ASD9955#ACV#FT###
Thanks in advance.
Regards
Rochit