Answers for "how to find max and min in column bash"

0

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
Posted by: Guest on June-17-2021

Code answers related to "how to find max and min in column bash"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language