📌  相关文章
📜  如何在 bash 列中找到最大值和最小值 - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:50:07.440000             🧑  作者: Mango

代码示例1
#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