find files more than specific size

find ./ -size +5G -exec sh -c ‘ls -h “{}”|egrep -i -q “*.(avi|AVI|mkv|MKV|mp4|MP4)$”‘ ‘;’ -print

Leave a Reply

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