to get list in directory in linux code example Example: get list of directories bash for d in */ ; do echo "$d" done