how to find max and min in column bash
#min
cat file.dat | sort -nk3,3 | head -1
#this will find minumum of column 3
#max
cat file.dat | sort -nk3,3 | tail -1
#this will find maximum of column 3
#to find in column 2 , use -nk2,2
how to find max and min in column bash
#min
cat file.dat | sort -nk3,3 | head -1
#this will find minumum of column 3
#max
cat file.dat | sort -nk3,3 | tail -1
#this will find maximum of column 3
#to find in column 2 , use -nk2,2
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us