I am trying to use grep to query a CSV file against incoming data from a html form. There are four drop down fields and I want to be able to match against the CSV data depending on what is selected. For example the user could only select drop downs one and four.
The above works but if $one has the value of 1 it matches against every instance on 1 in the CSV file. Is there a way to limit the match as
Any help, advice or alternatives would be greatly appreciated. Thanks