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 !!