#!/bin/bash
#Using -d option we are checking whether the first argument is a directory or not.
#$1 refers to the first argument
if [ -d $1 ]
then
        echo "The provided argument is the directory named $1"
#Using -f option we are checking whether the first argument is a file or not.
elif [ -f $1 ]
then
        echo "The provided argument is the file named $1"
#if the provided argument is not file and directory then it does not exist on the system.   
	echo " no of lines in the file are "
	wc -l $1
else
        echo "The given argument does not exist on the file system."
fi
