for dir in bash loop specific dirs code example Example: for each folder in directory bash for d in */ ; do echo "$d" done