awk_printf

awk -F: 'BEGIN{printf "%-20s%-20s%-20s\n","User","UID","Home"}{printf "%-20s%-20s%-20s\n", $1,$3,$6}END{print "Total",NR,"lines."}' /etc/passwd User UID Home
相關文章
相關標籤/搜索
本站公眾號
   歡迎關注本站公眾號,獲取更多信息