#!/bin/bash#iterate through all the files in a directoryfor file in /home/test/*doif [ -d "$file" ]t
#!/bin/bash#iterate through all the files in a directoryfor file in /home/test/*do if [ -d "$file" ] then echo "$file is a directory" elif [ -f "$file" ] then echo "$file is a file" fidone