参考文献: [1]sed 简明教程 coolshell.cn
awk/sed是贝尔实验室1977年搞出来的linux神器,但也是linux使用者必须知道的技巧之一。 可以完成的任务: (1)提取某种输出的第1列和第4列 awk '{print $1, $4}' netstat.txt (2)支持格式化输出 awk '{printf "%-8s %-8s %-8s %-18s %-22s %-15s\n",$1,$…
Quote saved.
Login to quote this blog
Failed to save quote. Please try again later.
You cannot quote because this article is private.