Let’s assume you want to find the minimum and/or maximum of a column of numbers in a given file using AWK.
Assume we have an input file foo with f.ex. line number in first column and in the second ($2) and third column ($3 in awk) we have the values of interest.