coreutils
[Top][All Lists]
Advanced

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

Re: grep pipe


From: Alain Williams
Subject: Re: grep pipe
Date: Sat, 28 Oct 2017 17:57:11 +0100
User-agent: Mutt/1.5.20 (2009-12-10)

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>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]