linux shell取文本最后一行,


目前我知道的方法有四种 1.awk 'END {print}'   2.sed -n '$p'   3.sed '$!N;$!D'   4.awk '{b=a"\n"$0;a=$0}END{print b}'

相关内容

    暂无相关文章