On Thu, Apr 26, 2012 at 12:20 AM, Matt Oates (Home) <[email protected]> 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