input to the program with all the strings in an array one by one

前端 未结 2 971
说谎
说谎 2020-12-20 09:54

I have a shell script consisting of so many perl scripts, one of the perl script have to be run with differnt input each time and the value has to be stored in a single file

2条回答
  •  清酒与你
    2020-12-20 10:24

    In bash, line by line:

    while read fruit
    do
      perl test.perl "$fruit"
    done < names.txt
    

提交回复
热议问题