|
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
|
Re: [PLUG] CLI for "find" text string in an unknown file
|
Try this:
find <directory> -exec grep -l <string> {} \;
replace <directory and <string> with appropriate values, and you're off!
--Matt Mossholder
----- "Casey Bralla" <MailList@NerdWorld.org> wrote:
> I'm looking for a command line tool that will search through text
> files and
> find the ones with a specific string. So far, Google has not helped
> me.
> Anybody know how to do this?
>
> --
>
>
> Casey Bralla
> Chief Nerd in Residence
> The NerdWorld Organisation
> ___________________________________________________________________________
> Philadelphia Linux Users Group --
> http://www.phillylinux.org
> Announcements -
> http://lists.phillylinux.org/mailman/listinfo/plug-announce
> General Discussion --
> http://lists.phillylinux.org/mailman/listinfo/plug
___________________________________________________________________________
Philadelphia Linux Users Group -- http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion -- http://lists.phillylinux.org/mailman/listinfo/plug
|
|