Re: [gentoo-user] search files for "text string"

2015-06-07 Thread Andrew Lowe
On 06/07/2015 09:00 PM, Volker Armin Hemmann wrote: > Am 06.06.2015 um 18:45 schrieb Joseph: >> I've bunch of php files in many directories and I need to file a text >> string in them "Check/Money Order" >> >> I've tried: >> find -type f -print0 | xargs -r0 grep -F 'Check/Money Order' >> it doesn't

Re: [gentoo-user] search files for "text string"

2015-06-07 Thread Alan McKinnon
On 08/06/2015 08:05, Raffaele BELARDI wrote: > Volker Armin Hemmann wrote: >> Am 06.06.2015 um 18:45 schrieb Joseph: >>> I've bunch of php files in many directories and I need to file a text >>> string in them "Check/Money Order" >>> >>> I've tried: >>> find -type f -print0 | xargs -r0 grep -F 'Che

Re: [gentoo-user] search files for "text string"

2015-06-07 Thread Raffaele BELARDI
Volker Armin Hemmann wrote: > Am 06.06.2015 um 18:45 schrieb Joseph: >> I've bunch of php files in many directories and I need to file a text >> string in them "Check/Money Order" >> >> I've tried: >> find -type f -print0 | xargs -r0 grep -F 'Check/Money Order' >> it doesn't work. >> >> What is a b

Re: [gentoo-user] search files for "text string"

2015-06-07 Thread Alan McKinnon
On 07/06/2015 15:00, Volker Armin Hemmann wrote: > Am 06.06.2015 um 18:45 schrieb Joseph: >> I've bunch of php files in many directories and I need to file a text >> string in them "Check/Money Order" >> >> I've tried: >> find -type f -print0 | xargs -r0 grep -F 'Check/Money Order' >> it doesn't wo

Re: [gentoo-user] search files for "text string"

2015-06-07 Thread Neil Bothwick
On Sun, 07 Jun 2015 14:59:51 +0200, Volker Armin Hemmann wrote: > >> 'cd' to the lowest dir which contains them all, > >> then 'grep -r "Check/Money Order" *.php'. > > That will only search *.php files in the current directory, you need > > nope The shell expands the *.php to a list of match

Re: [gentoo-user] search files for "text string"

2015-06-07 Thread Volker Armin Hemmann
Am 06.06.2015 um 18:45 schrieb Joseph: > I've bunch of php files in many directories and I need to file a text > string in them "Check/Money Order" > > I've tried: > find -type f -print0 | xargs -r0 grep -F 'Check/Money Order' > it doesn't work. > > What is a better method of searching files? grep

Re: [gentoo-user] search files for "text string"

2015-06-07 Thread Volker Armin Hemmann
Am 07.06.2015 um 01:40 schrieb Neil Bothwick: > On Sat, 6 Jun 2015 13:11:04 -0400, Philip Webb wrote: > >>> I've bunch of php files in many directories >>> and I need to find a text string in them "Check/Money Order" >> 'cd' to the lowest dir which contains them all, >> then 'grep -r "Check/Money

Re: [gentoo-user] search files for "text string"

2015-06-06 Thread tlze
try: find . -type f -exec grep 'abcd' -l {} \;

Re: [gentoo-user] search files for "text string"

2015-06-06 Thread Joseph
On 06/06/15 23:04, Alan McKinnon wrote: On 06/06/2015 18:45, Joseph wrote: I've bunch of php files in many directories and I need to file a text string in them "Check/Money Order" I've tried: find -type f -print0 | xargs -r0 grep -F 'Check/Money Order' it doesn't work. What is a better method

Re: [gentoo-user] search files for "text string"

2015-06-06 Thread Neil Bothwick
On Sat, 6 Jun 2015 13:11:04 -0400, Philip Webb wrote: > > I've bunch of php files in many directories > > and I need to find a text string in them "Check/Money Order" > > 'cd' to the lowest dir which contains them all, > then 'grep -r "Check/Money Order" *.php'. That will only search *.php fil

Re: [gentoo-user] search files for "text string"

2015-06-06 Thread Alan McKinnon
On 06/06/2015 18:45, Joseph wrote: > I've bunch of php files in many directories and I need to file a text > string in them "Check/Money Order" > > I've tried: > find -type f -print0 | xargs -r0 grep -F 'Check/Money Order' > it doesn't work. > > What is a better method of searching files? Defin

Re: [gentoo-user] search files for "text string"

2015-06-06 Thread Alexander Kapshuk
On Sat, Jun 6, 2015 at 8:46 PM, Joseph wrote: > On 06/06/15 20:09, Alexander Kapshuk wrote: > >On Sat, Jun 6, 2015 at 7:45 PM, Joseph <[1]syscon...@gmail.com> wrote: >> >> I've bunch of php files in many directories and I need to file a >> text string in them "Check/Money Order" >>

Re: [gentoo-user] search files for "text string"

2015-06-06 Thread Joseph
On 06/06/15 20:09, Alexander Kapshuk wrote: On Sat, Jun 6, 2015 at 7:45 PM, Joseph <[1]syscon...@gmail.com> wrote: I've bunch of php files in many directories and I need to file a text string in them "Check/Money Order" I've tried: find -type f -print0 | xargs -r0 grep -F 'Chec

Re: [gentoo-user] search files for "text string"

2015-06-06 Thread Philip Webb
150606 Joseph wrote: > I've bunch of php files in many directories > and I need to find a text string in them "Check/Money Order" 'cd' to the lowest dir which contains them all, then 'grep -r "Check/Money Order" *.php'. -- ,, SU

Re: [gentoo-user] search files for "text string"

2015-06-06 Thread Alexander Kapshuk
On Sat, Jun 6, 2015 at 7:45 PM, Joseph wrote: > I've bunch of php files in many directories and I need to file a text > string in them "Check/Money Order" > > I've tried: > find -type f -print0 | xargs -r0 grep -F 'Check/Money Order' > it doesn't work. > > What is a better method of searching fil

[gentoo-user] search files for "text string"

2015-06-06 Thread Joseph
I've bunch of php files in many directories and I need to file a text string in them "Check/Money Order" I've tried: find -type f -print0 | xargs -r0 grep -F 'Check/Money Order' it doesn't work. What is a better method of searching files? -- Joseph