I am trying to figure out a way to execute a Linux command only if a specific column in my CSV file has a value greater than 1.
Sample CSV file:
Item,Quantity Pen,1 Pencil,1 Stapler,3
Using the example above, I would like my script to check column 2 of the CSV, and if it finds value > 1 (in this case it would because of the 3) then it would run the command, and if all the values in column 2 were 1, then it would do nothing.
Can somebody help me accomplish this?