
:
#######################################################
# prog4a - list files that have not been accessed for a 
# year. 
#
# This could also be used to find date ranges.  See also 
# yearago.sh. 
#
# atime - Time when file data was last accessed.  
#         Changed by the following system calls:
# 
#     creat, mknod, pipe, utime, and read.
# 

lyear=`yearago.sh`
echo "year ago date = $lyear"

find / -type f -print |
stat -aAn - |

awk '{
    # day month dayofmonth time year date_number name

    if ( $6 <= yearold ) {
        $6=""
        print
    }
}' yearold=$lyear

