假设测试程序a 需要传入参数 input1 执行是 ./a inout1
那么这个1000个测试执行可以按如下命令批量执行
ls input* | xargs -I {} ./a {}
如果input目录下面还有其它input类似的文件比如input_test,inputA之类的需要过滤,
那么可以过滤一下
ls input* |grep "input[0-9]\{,4\}$" | xargs -I {} ./a {}