I have two sets of test.csv data.xml files.
I am trying to grep a specific field from test.csv and search for a string in data.xml. If the string is found, print the corresponding string in the test.csv file.
Example
search string - field name 3.
test.csv
111,xxx,serversugar,port90 222,yyy,servertorque,port190 333,aaa,serverastrix,port8080 422,yxy,servertorque,port290
data.xml
<group> <hostname>servertorque</hostname> <hostname>serverastrix</hostname></group>
Expected Result
222,yyy,servertorque,port190 333,aaa,serverastrix,port8080 422,yxy,servertorque,port290
source share