I trying to run command recon-all with GNU parallel freesurfer preproc i have a bash array of list of patients to run 8 patents simultaneously:
root@4d8896dfec6c:/tmp# echo ${ids[@]}
G001 G002 G003 G004 G005 G006 G007 G008
and try to run with command:
echo ${ids[@]} | parallel --jobs 28 recon-all -s {.} -all -qcache
it doesn't work because i suppose i need to have bash array in ls representation, smth like:
ls ${ids[@]} | parallel --jobs 28 recon-all -s {.} -all -qcache
How can i do that?