Bash - Redirection with wildcards

后端 未结 3 1323
春和景丽
春和景丽 2021-01-28 05:19

I\'m testing to do redirection with wildcards. Something like:

./TEST* < ./INPUT* > OUTPUT

Anyone have any recommendations? Thanks.

3条回答
  •  挽巷
    挽巷 (楼主)
    2021-01-28 05:50

    for test in ./TEST*; do
     for inp in ./INPUT*; do
       $test < $inp >> OUTPUT
     done
    done
    

提交回复
热议问题