5 Jul
2016
5 Jul
'16
1:01 p.m.
On Mon, 4 Jul 2016 15:36:04 +0100 Steve Engledow <steve@offend.me.uk> wrote:
On 04/07, Brett Parker wrote:
On 30 Jun 13:22, Laurie Brown wrote:
find [dir] -type f | xargs grep -liH "string"
Or, getting rid of the useless pipe, and using any modern version of find:
find [dir] -type f -exec grep -liH "string" {} +
I likely missed some context by not bothering to read the whole thread, but why not:
grep -rliH "string" [dir]
?
find: invalid predicate `-rliH' -- __ __| |_ __ __ .----------------------------------------------. / _/ _` \ V V / | mailto:alug_cdw@the-walker-household.co.uk | \__\__,_|\_/\_/ |______________________________________________|