Linux: remove files created before or after date

Very useful command if you want to remove files from current directory created  between certain dates, in this case files will be older than 3 days and newer than 35 days, we also filter out only files with “-type f parameter”

find . -mtime +3 -mtime -35 -type f | grep -v ‘/.’ | xargs rm

If you only want to list those files without removing them use this:

find . -mtime +3 -mtime -35 -type f | grep -v ‘/.’