求test文件中第一列中最大值,文件如下:
12 345
23 567
25 567
计算第一行的最大值
cat test|awk '{print $1}' |sort -n|sed -n '$p'
25 结果