On Sat, Oct 28, 2017 at 09:50:47AM -0400, Max Charles wrote:
> How you get grep to put the output of the pipe like so, there seems to be no 
> option for something like this:
> 
> echo 'patternfrompipe' | grep -R 'patternfrompipe' *

grep -R "$( echo 'patternfrompipe' )" *

> grep -R 'pattern' *
> works fine
> 
> Thanks,
> 
> Max

-- 
Alain Williams
Linux/GNU Consultant - Mail systems, Web sites, Networking, Programmer, IT 
Lecturer.
+44 (0) 787 668 0256  http://www.phcomp.co.uk/
Parliament Hill Computers Ltd. Registration Information: 
http://www.phcomp.co.uk/contact.php
#include <std_disclaimer.h>

  • grep pipe Max Charles
    • Re: grep pipe Alain Williams

Reply via email to