Oct 5, 2004 #1 sam93 Programmer Jul 19, 2002 65 CA Hi, How can I list contents of a directory that haven’t been accessed in the last 30 days? Thanks.
Oct 5, 2004 #2 ericbrunson Technical User Jan 9, 2004 2,092 US man find" and look at "-atime", but be careful, atime is hard to rely on and is particularly platform dependent. Upvote 0 Downvote
man find" and look at "-atime", but be careful, atime is hard to rely on and is particularly platform dependent.
Oct 6, 2004 Thread starter #3 sam93 Programmer Jul 19, 2002 65 CA Thanks. However, I have to display these files in the directory as long listing (probably using ls -l). How can I do that? Upvote 0 Downvote
Thanks. However, I have to display these files in the directory as long listing (probably using ls -l). How can I do that?
Oct 6, 2004 #4 KenCunningham Technical User Mar 20, 2001 8,475 GB As Eric has suggested, but add -exec ls -la {} \; to it. Alternatively, add | xargs ls -la {} instead. Upvote 0 Downvote
As Eric has suggested, but add -exec ls -la {} \; to it. Alternatively, add | xargs ls -la {} instead.
Oct 6, 2004 Thread starter #5 sam93 Programmer Jul 19, 2002 65 CA Thanks guys. That was really quick. Upvote 0 Downvote