|
From: | ed bierly |
Subject: | Re: newbie ? |
Date: | Tue, 4 Apr 2017 16:22:59 -0400 |
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
[Prev in Thread] | Current Thread | [Next in Thread] |