find command for linux getting file older than a week code example Example: bash get files older than find your/folder -type f -mtime +13 -exec rm {} \;