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?
Execute Linux command only if column in CSV file has a value greater than 1
shell script;csv
awk -F, 'NR>1 && $2 > 1 {found=1 ; exit} ;          END {exit !found}' file.csv && mycommandThis exits with 0 (true) if any field 2 is > 1.  Otherwise it exits with 1 (false).  mycommand is run if true.The NR>1 skips the Item,Quantity header (the string Quantity evaluates to > 1).