#!/bin/bash
#TITLE : Bash03.sh
#CREATED : 09/22/2014
#CREATED BY :
########################################################
## if (( $COUNT < 10 )) for numerical test
## if [[ $USER = "root" ]] for string test
if [[ $1 = "directory" ]]
then
find /etc -maxdepth 1 -type d
elif [[ $1 = "link" ]]
then
find /etc -maxdepth 1 -type l
elif [[ $1 = "file" ]]
then
find /etc -maxdepth 1 -type f
else
echo "Usage: $0 file | directory | link | file"
fi