
#!/bin/bash
# For all the files in a folder, show their properties 
#!/bin/bash
# For all the files in a folder, show their type
for f in $1/*; do
    if [ -f "$f" ]; then
        echo "$f is a regular file"
        exit 1
    elif [ -d "$f" ]; then
        echo "$f is a directory"
        file "$f"
    else
        echo "$f is not a regular file or directory"
        exit 1
    fi
done