Date: Sat, 30 May 2009 11:25:12 +0200 From: "Zbigniew Szalbot" <z.szalbot@lcwords.com> To: freebsd-questions@freebsd.org Subject: find and searching for specific expression in files Message-ID: <dd6b168d2af9ddbcfc52e5c0397e4d6a.squirrel@relay.lc-words.com>
next in thread | raw e-mail | index | archive | help
Hello, Can you please give me a hint how to use find to search for a specific text within files? I am using find in the following manner: find /path/to/files/ -mtime -2 -ls |less to find files which have been recently modified. But I would like to extend the search to find specific expression within files. -name is used to specify file name. How can I search for strings within text? It is probably in the man but I somehow overlook it. :( Thank you very much in advance! -- Zbigniew Szalbot
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?dd6b168d2af9ddbcfc52e5c0397e4d6a.squirrel>