在循环中运行可执行文件
我有一个测试(基本上是一个可执行文件),我想运行几次。是否有某种脚本或其他东西可以执行此操作?基本上我想运行
terminal>./test and do this like n times.
这是针对命令行的。
ps 我没有命名可执行测试..我只是使用助记符来帮助我所说的
I have a test (which is basically an executable) which I want to run several times .Is there like some sort of script or something to do this?Basically I want to run
terminal>./test and do this like n times.
This is for the command line.
p.s I did not name the executable test ..I just used a mneumonic to help what I was saying
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
不要调用您的程序
test
。您可以使用 zsh 内置的repeat,例如
Don't call
test
your program.You can use repeat builtin of zsh, e.g.
怎么样
这应该适用于所有类似 sh 的 shell。附带说明一下,将可执行文件命名为“test”并不是最好的主意:
How about
This should work on all sh-like shells. As a side note, naming an executable "test" is not the best idea: