Re: find

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



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

Attachment: pgp0uKHAXmA6Z.pgp
Description: PGP signature

_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux