23,224
社区成员
发帖
与我相关
我的任务
分享
$ cat hello.c
#include <unistd.h>
#include <stdio.h>
int
main(void)
{
sleep(10);
return (0);
}
$ nawk ' {print $0; } FNR == 6 { print "\t/* comment */"; }' hello.c
#include <unistd.h>
#include <stdio.h>
int
main(void)
{
/* comment */
sleep(10);
return (0);
}