#
#Write a script to display the name of those files (in the given directory) which are having multiple links. 
#
clear
echo -n "Enter name of the directory :"
read directory
if [ ! -d "$directory" ]
then
    echo "Directory does not exist"
else	
	count=0
	for i in $(find $directory -type f ! -links 1)
	do
		echo $i
		count=$(echo $count + 1 | bc -l)
	done
	if [ $count -eq 0 ]
	then
		echo "No files found with multiple links"
	fi
fi
