[CentOS] find
Ralph Angenendt
ra+centos at br-online.deMon Oct 6 09:41:18 UTC 2008
- Previous message: [CentOS] find
- Next message: [CentOS] find
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Akemi Yagi wrote:
>> find . -type f -exec grep -il !* {} \;  -exec grep -i !* {} \; -exec echo \;
>>
>> alias it to, say, findword and run:  findword <text>
> 
> Sorry, I missed the "!" in the above paste:
> 
> find . -type f -exec grep -il \!* {} \;  -exec grep -i \!* {} \; -exec echo \;
If you are using GNU grep (well, you are using CentOS), 
grep -ri "foo" dir/to/search/in
seems much shorter to me.
Cheers,
Ralph
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.centos.org/pipermail/centos/attachments/20081006/0e206a3a/attachment-0001.sig>
  - Previous message: [CentOS] find
- Next message: [CentOS] find
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the CentOS mailing list