#
#Write a script to display the directory in the descending order of the size of each file. 
#
clear
echo -n "Enter name of the directory :"
read directory

if [ ! -d $directory ]
then
    echo "Directory not exist"
else
	for i in $(ls -Sl $directory | tr -s " " | cut -d " " -f8)
	do
		echo $i
	done
fi