The following removes all files named core or filenames ending in .out that
have not been accessed in the last seven days.
find / \( -name core -o -name "*.out" \) -atime +7 -exec rm {} \;
The next example uses find with the -cpio expression to make a tape archive
of all files modified within the last seven days.
find / -mtime -7 -print -cpio /dev/rct0
find is used here to list all files within a given range of sizes (between
50 and 100 kilobytes) by including the -size expression twice:
find / -size +100 -size -200 -exec ls -s {} \;
For comparison, the ls(C) command is called with the -s option to report the
size of each file in 512-byte blocks (including indirect blocks).