Linux查找文件和grep然后按日期列出

Eri*_*icP 4 linux grep list exec find

我正在尝试查找名称中formClass.php包含checkCookie字符串的文件,并且我希望按日期列出显示日期,大小,所有者和组的文件.这些文件位于我的主目录中.

我有这个工作,但它没有显示日期,所有者等...

find /home -name formClass.php -exec grep -l "checkCookie" {} \;
Run Code Online (Sandbox Code Playgroud)

我想我可以像这样在列表中添加"trhg",但它不起作用:

find /home -name formClass.php -exec grep -ltrhg "checkCookie" {} \;
Run Code Online (Sandbox Code Playgroud)

谢谢

art*_*tol 6

尝试 find /home -name formClass.php -print0 | xargs -0 grep -l --null checkCookie | xargs -0 ls -l