awk将每个输入文件行定义为记录,行中的每个字符串定义为域,分隔域的符号叫做域分隔符
vim student
Li Hao njue 025-83481010#awk ‘BEGIN {FS=","} {print NR,NF,$0} END {print FILENAME}‘ student
====================================================================原文地址:http://blog.csdn.net/wanglei_storage/article/details/46539431