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.
我有一个程序:
#!/bin/awk -f BEGIN { } { print "hello" } END { }
它打印 hello 然后等待输入被按下,然后再次打印 hello。我想让它无限,而不要求输入。请评论!
同意@SiegeX
yes | awk '{ print "hello" }'
#!/bin/awk -f BEGIN{ while(1) print "hello" }