遞迴執行程式 - Linux

Table of Contents

我的某一個程式是這樣執行的
#./a.out testcase.cc

目前我的.cc不是在同一個資料夾底下

ex:
./testcase1/testcase.cc
./testcase2/tsetcase.cc
./testcase3/testcase.cc

而且可能資料夾底下還有其他檔案 ex: .h .txt

請問有辦法遞迴執行程式 讓我可以遞迴下去跑所有的testcase嗎

--

All Comments

Mary avatarMary2013-04-18
for i in find; do; eval $i; done 這樣?
Catherine avatarCatherine2013-04-19
find -name \*.cc -exec a.out {} \;