There are several ways to do this, but it is used here awk
. Since it's already sorted, you want to check to just print the lines that match the first value, by connecting the head
ed list to something like
awk 'BEGIN{maxval=0}; (maxval==0) {maxval=$1}; ($1==maxval) {print $0}'
cm2
source
to share