how to loop through a directory in bash and run all bash scripts inside code example
Example 1: loop through directories bash
#loops only through directories
for d in */ ; do
echo "$d"
done
Example 2: for each folder in directory bash
for d in */ ; do
echo "$d"
done