Mass find/replace...
Ruben de Groot
mail25 at bzerk.org
Thu Dec 4 05:00:25 PST 2008
On Thu, Dec 04, 2008 at 12:52:02PM +0000, Vincent Hoffman typed:
> Marc Coyles wrote:
> >
> > I need to do a find / replace throughout the entire of the
> > /home/horbury/public_html directory...
> > I've tried 'find /home/Horbury/ -type f | xargs grep -l base64_decode'
> > to get a list of the files that require the operation performing, but it
> > comes up with an error (xargs: unterminated quote) after a few
> > results...
> >
> try using
>
> find /home/Horbury/ -type f -print0| xargs -0 grep -l base64_decode
> (not certain it'll fix it but good practice anyway)
Or just:
grep -r base64_decode /home/Horbury
Ruben
More information about the freebsd-questions
mailing list