parallel
[Top][All Lists]
Advanced

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

Re: GNU parallel question


From: Ole Tange
Subject: Re: GNU parallel question
Date: Mon, 26 Dec 2011 19:59:18 +0100

Have a look at --xapply (if the 2 parts are in different files) or
--colsep (if the 2 parts are in a single file),

/Ole


On Mon, Dec 26, 2011 at 3:25 PM, Uma Nagaswamy <uma.nagaswamy@gmail.com> wrote:
>
> Hi Mr. Tange,
>
> I have been using GUN parallel for various tasks of mine and find it 
> extremely useful. I am trying to relink some files that were relocated to a 
> new location.
>
> Here is my original list:
> /home/swamy/snps/dir1/chr1.bed
> /home/swamy/snps/dir1/chr2.bed
> /home/swamy/snps/dir1/chr3.bed
> /home/swamy/indels/dir1/chr5.bed
> /home/swamy/indels/dir1/chr6.bed
> /home/swamy/indels/dir1/chr7.bed
> /home/swamy/new_indels/dir1/chr8.bed
> /home/swamy/new_snps/dir1/chr9.bed
>
> I want to parse two parts from this:
> part1:
> basename:
> /home/swamy/snps/dir1/
> /home/swamy/new_snps/dir1/
>
> part2:
> filename: chr1.bed, chr2.bed, chr3.bed etc
>
> The new destination where the bed files reside is:
> /home/common/bed_files/*bed
>
>
> I want to relink the new file location in the original directories like this:
>
> cat original_destination | parallel -k -j150% -n 1000 -m 'ln -s 
> /home/common/bed_files/part2 part1'
>
> My question is how do I pass two arguments to ln -s to be used with parallel?
>
> Hope this is not confusing. Thanks very much for your input!
>
> Best,
> -Uma



reply via email to

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