find ./ -size +5G -exec sh -c ‘ls -h “{}”|egrep -i -q “*.(avi|AVI|mkv|MKV|mp4|MP4)$”‘ ‘;’ -print
Log rotation in bash
This is a little bash script that rotate logs as when the file reach a specified limit.
welcome..
find ./ -size +5G -exec sh -c ‘ls -h “{}”|egrep -i -q “*.(avi|AVI|mkv|MKV|mp4|MP4)$”‘ ‘;’ -print
This is a little bash script that rotate logs as when the file reach a specified limit.