parallel
[Top][All Lists]
Advanced

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

Re: newbie ?


From: Chris Penkett
Subject: Re: newbie ?
Date: Tue, 4 Apr 2017 19:36:09 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.5.1

Can you make your stdin pipe like this

~$ parallel "awk -v a={} -f a.awk <(cat f.txt)" ::: 2 3
2
3


On 04/04/17 18:17, ed bierly wrote:
~$ cat f.txt
1
2
3

~$ cat a.awk
{if(a==$1)print}

~$ parallel 'awk -v a={} -f a.awk f.txt' ::: 2 3
2
3

# how can i get the same output with stdin
~$ cat f.txt | parallel 'awk -v a={} -f a.awk' ::: 2 3
2
~$ cat f.txt |parallel --pipe 'awk -v a={} -f a.awk' ::: 2 3
2




reply via email to

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