Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
对于下面的清单,我收到一个错误:
致命:先前定义的函数名称“myprint”
$3 > 0 { myprint ($3) } function myprint(num) { printf "%6.3g\n", num }
我发现在调用之后和参数之间有一个额外的空间:
myprint ($3)
应该:
myprint($3)