The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
Google UNIX.COM



View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #3 (permalink)  
Old 09-12-2007
varungupta varungupta is offline
Registered User
 

Join Date: Feb 2007
Location: Pune, Dehradun (INDIA), Michigan(US)
Posts: 187
Question

MYPATH="/clocal/mqbrkrs/user/mqsiadm/xyz/"
find "$MYPATH" -type f -amin -1 > tempfind.txt

In the above path I want to find the files which has been viewed/opened/touched/modified by any user in past 1 minute.
Viewed/opened/touched means file contents has been opened using more/cat/tail/head etc. commands.

find command that i am using, it shows the name of the file in which i have written the script (Means the script file only).

I have already checked the man find.
Can you guide me on this !!

Thanks !!
Reply With Quote