I am trying to find files called formClass.php that contain the string checkCookie , and I want to list the files by date with date, size, owner and group. Files are in my home directory.
It works for me, but it does not show the date, owner, etc.
find /home -name formClass.php -exec grep -l "checkCookie" {} \;
I thought I could add "trhg" to a list like this, but this did not work:
find /home -name formClass.php -exec grep -ltrhg "checkCookie" {} \;
thanks
EricP source share