I have a large file in terms of a string containing key value pairs. I am looking for a proper way to search for the value pair where the value is 'apple' (can be both upper or lower) and output only related key value pair if found.
For ex. 55=APPLE
<SOH>
is the delimiter here.
8=FIX.4.2<SOH>9=153<SOH>35=D<SOH>49=BLP<SOH>56=SCHB<SOH>34=1<SOH>50=30737<SOH>97=Y<SOH>52=20000809-20:20:50<SOH>11=90001008<SOH>1=10030003<SOH>21=2<SOH>55=APPLE<SOH>54=1<SOH>38=4000<SOH>40=2<SOH>59=0<SOH>44=30<SOH>47=I<SOH>60=20000809-18:20:32<SOH>10=061<SOH>
Glad if you could provide any suggestions.