【发布时间】:2013-03-09 16:55:30
【问题描述】:
我有一个文件,其行如下:
5 3 6 4 2 3 5
1 4 3 2 6 5 8
..
我想得到每一行的最小值,所以例如上面给出的输入,我应该得到:
min of first line: 2
min of second line: 1
..
如何使用 awk 对每行中任意数量的列执行此操作?
【问题讨论】:
-
这个问题最困难的部分是找不到最小值,打印那些
" the first, the second, the third, the forth... text":) 祝你好运