注册 登录
编程论坛 Perl论坛

直接使用awk 命令为什么会死掉?

vfdff 发布于 2012-07-21 13:04, 5815 次点击
我想格式化输出下面的字符,直接使用awk死掉了,大家谁知道为什么?
awk '{printf "%-40s %-7s %-10s%-10s","function", "calles times", "self cycles", "total cycles"}'
3 回复
#2
vfdff2012-07-21 13:05
将awk去掉即可
T:\Script>printf "%-40s %-7s %-10s%-10s","function", "calles times", "self cycles", "total cycles"
calles times,                            self cycles, total cycles          ,function,
#3
vfdff2012-07-21 13:13
T:\Script>printf "%s %s %s %s\n" "function", "times", "self cycles", "total cycles"
function, times, self cycles, total cycles
#4
岁月如刀2013-07-22 01:01
额~~~楼主,你倒腾半天就打印了几个字符串啊~。。。悲了个催。。。
1