How to make infinite loop with awk
I have a program:
#!/bin/awk -f
BEGIN {
}
{
print "hello"
}
END {
}
It prints hello and then waits for enter to be pressed and then again prints hello. i want to make i开发者_Go百科t infinite without asking for enter. Please comment!
Agreed with @SiegeX
yes | awk '{ print "hello" }'
#!/bin/awk -f
BEGIN{
while(1)
print "hello"
}
精彩评论