awk中使用printf和C语言的printf 用法基本是一样的 都是用 printf("格式化字符串", 变量) 这种形式 例如 awk ' { printf ("%d\n", a); } ' 就是输出整数a