An expansion to Michael's script idea, you should do something like this:
ls 4*.bam | while read BAM
do
[parallelised code executed on "${BAM}"]
done
Alternatively, you could split the output of ls into chunks and then run each in separate terminals:
ls 4*.bam | split --lines=4
This will create file 'chunks' called xaa xab xac, etc. You can run the same loop above (less parallel) multiple times in multiple sessions, and in this way it's parallelising in a different sense.
• 0 views
•
link