Given the following table Using a bash shell script based in Linux, I’d like to delete all the rows based on the value of column 1 (The one with the long number). Having into consideration that this number is a variable number I’ve tried with awk ‘{a[$3]++}!(a[$3]-1)’ file But I am not getting the result which would be something like