for d in ./*/ ; do 
	cd "$d" 
	if (($(du -k mesh.ply | cut -f1) == "4"))
	then
		echo $d
		cd ..
		rm -r "$d"
	else
		cd ..
	fi
	echo $(pwd)
done
Shell Script: scan through folders and files by file size

Leave a Reply

Your email address will not be published. Required fields are marked *