What command can I execute to check the directories inside a folder and if the total size of the directory is smaller than 30MB, delete it? I played around with the
find command trying to move files based in the size but it didn't work properly.
I was using (for 1mb):
find . -size +102400k -exec mv DIRECTORY find . -size -102400k -exec mv DIRECTORY