文件
858 haha 569 xixi 1858 hehe 1526 hello 256 world 382 print 112 top 1145 css 921 html 556 perl 228 python 215 shell 1356 awk 158 linux
awk代码
awk 'BEGIN {max = 0} {if ($1+0 > max+0) {max=$1 ;content=$0} } END {print content}' data
结果
1858 hehe
转载于:https://blog.51cto.com/3922078/1673982