#!/bin/sh # Find files changed within days that have the "nodump" flag find `echo /* | sed -e 's= /dev==' -e 's= /proc==' -e 's= /tmp=='` \ -mtime -${1:-1} \! -type d -print0 \ | xargs -0 lsattr -d \ | fgrep -- "-d-"