我想打印awk. 字段的数量是NF变量。我知道我应该可以使用$NF,但我不确定如何使用它。
awk
NF
$NF
这似乎不起作用:
awk ' { print ( $NF-- ) } '
awk '{print $(NF-1)}'
应该管用