parallel
[Top][All Lists]
Advanced

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

Re: Using -C with --pipe is this possible?


From: Ole Tange
Subject: Re: Using -C with --pipe is this possible?
Date: Mon, 30 Apr 2012 22:51:26 +0200

On Thu, Apr 26, 2012 at 12:20 AM, Matt Oates (Home) <mattoates@gmail.com> wrote:
> Hi All,
>
> Imagine I have the file "file.tab" with the following data:
>
> 21501699        MSAFFPVISSLNPAVPSVAAP
> 21501700        MIGGILSCGITHTGITPLDVV
> 21501701        MVIAIAKYFGWPLDQLDVVTA
> 21501702        MKWHPDKNKNNLVEAQYRFQE

Good to see protein people using GNU Parallel.

> I then want to run something of the form:
>
> parallel -C '\t' -N 1 --pipe "myprogram /dev/stdin | cat <(echo {1})
> -" < file.tab | output-processing-program > results.tab

Will this work?

cat file.tab | parallel -C '\t' 'echo {1}; echo {2} | myprogram
/dev/stdin' | output-processing-program > results.tab

Or maybe --tag is even better for your purpose?

cat file.tab | parallel --tag -C '\t' 'echo {2} | myprogram
/dev/stdin' | output-processing-program > results.tab


/Ole
-- 
Did you get your GNU Parallel merchandise?
ttps://www.gnu.org/software/parallel/merchandise.html



reply via email to

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