#!/bin/sh find /files/ -type f -mtime +10 ! -name '*.meta' \ -exec rm {} \; -exec rm {}.meta \;