|
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
|
Re: [PLUG] CLI for "find" text string in an unknown file
|
Thanks, your idea (and the others) did the trick. (I didn't know grep would
look *through* files. I always just use it to filter through a pipe)
On Wednesday 15 October 2008 7:53:31 pm Dan Widyono wrote:
> > find <directory> -exec grep -l <string> {} \;
>
> Or with only one tool, grep -rl <string> /path/to/top/directory
>
> 8-) Dan W.
> ___________________________________________________________________________
> 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
--
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
|
|