On Wed, Jul 16, 2014 at 8:34 PM, Ole Tange <ta...@gnu.org> wrote: > I am always looking for neat examples to use GNU Parallel for.
For bioinfomatics you have a pair of files: foo_R1.txt.gz and foo_R2.txt.gz, and you often want to process them together. Here a program is called that takes the uncompressed foo_R1/R2 and produce foo_interleave.txt.gz parallel --xapply --dry-run 'python interleave.py <(zcat {1}) <(zcat {2}) |gzip > {=1 s/_R1.txt.gz/_interleave.txt.gz/=}' ::: *R1.txt.gz ::: *R2.txt.gz Note how you can replace the _R1.txt.gz from argument one using perl. /Ole