I would like to do something like this:
for file in *.sh; do
echo "$file"
done
But recursively, so something equivalent to this (but this doesn't work):
for file in **/*.sh; do
echo "$file"
done
Is there a nice and succinct way of doing this? I really like the for x in y
syntax.
Is there a nice way of combining this with the find
command? I've seen quite a bit of articles using find
, but the files where never really looped over in the examples I've found.
Thank you for your time :)