parallel
[Top][All Lists]
Advanced

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

Re: how to use gnu parallel and grep with a space


From: Ole Tange
Subject: Re: how to use gnu parallel and grep with a space
Date: Mon, 12 May 2014 17:30:28 +0200

On Sun, May 11, 2014 at 11:31 AM, Shantanu Unknown
<shantanu9847@hotmail.com> wrote:

> I am trying to use gnu parallel and grep as follows
>
> cat tmp | parallel -j1 grep  "^{} " ~/datafile.txt

The "^{} " gets unquoted, so you need to quote that one more time. It
can be done like this:

cat tmp | parallel -j1 grep "^{}\ " ~/datafile.txt
cat tmp | parallel -q -j1 grep "^{} " ~/datafile.txt
cat tmp | parallel -j1 grep '"^{} "' ~/datafile.txt

/Ole



reply via email to

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