I would like to run a shell script on files in multiple folders. At the moment, I have the following:
#/bin/bash
FILES=("./binBuild/*.c" "./binBuild/subdir1/*.c" "./binBuild/subdir2/*.c" "./binBuild/subdir2/subsubdir1/*.c")
for file in $FILES
do
echo $file
done
However, this only lists files in "./binBuild/*.c"
. How can I correctly incorporate the other folders listed, into $FILES
?