I have a requirement of finding the directory size which is more than a particular value and I made a script for the same. But find command is not accepting -size section. Can anyone help me on this
echo -e "This script will generate report for directories which consumes more size than the given value"
read -p " Enter the file system or directory full path: " path
read -p " This script will check the directories which is greater than the given size Please Enter the directory size in GB: " size
find $path -type d -size +$sizeG -exec ls -ld {} \;
error
find: invalid -size type `+'