Finding Long Unaccessed Files and Running Commands on Found Files

We all have old files on our systems and in our home directories that have not been accessed in a long time. To find files in a home directory that have not been accessed in the last 200 days, you would issue the following command:

# find . -atime +200 -print ./hp/.Xdefaults ./hp/.bash_logout ./hp/.bash_profile ./hp/.bashrc ./hp/.kde/share/apps/kfm/desktop ./hp/.kde/share/config/desktop0rc ./hp/.kde/share/config/kcmdisplayrc ./hp/.kde/share/config/kfmrc ./hp/.kde/share/config/kpanelrc ./hp/.kde/share/config/kvtrc ./hp/.kderc ./hp/Desktop/.directory ./hp/Desktop/Printer.kdelnk ./hp/Desktop/Templates/Device.kdelnk ./hp/Desktop/Templates/Ftpurl.kdelnk ./hp/Desktop/Templates/MimeType.kdelnk ...

Get HP-UX 11i System Administration Handbook and Toolkit, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.