for i in $(find . -mtime +30); do mv $i old/; done - (Move files older than 30 days in current folder to \"old\" folder Will move in that case every file in the current folder older than 30 days to the \"old\" folder Replace \"mv $i old/\" by any command