Got it. Thank you Matthew
On Mon, Dec 23, 2019 at 10:53 AM Matthew Webster
<[log in to unmask]> wrote:
>
> Linux for loops really just work over list of symbols, e.g.
>
> for fruit in apple banana orange; do
> echo $fruit
> done
>
> So for a more complex scheme ( it looks you have a tripartite naming convention ) you can build these up with multiple nested for loops over each sub category.
>
> Kind Regards
> Matthew
> --------------------------------
> Dr Matthew Webster
> FMRIB Centre
> John Radcliffe Hospital
> University of Oxford
>
> On 20 Dec 2019, at 23:12, Lance Stevens <[log in to unmask]> wrote:
>
> The FSL FIRST user guide (https://fsl.fmrib.ox.ac.uk/fsl/fslwiki/FIRST/UserGuide) provides an example for loop for usage with multiple subjects and/or groups.
>
> My question concerns the naming convention for group name and subject number: e.g. con01.nii, con02.nii etc. I assume that the for loop function, like the for loop functions I'm familiar with, will only accept a few consistent characters to identify the group followed by unique digits identifying each subject (e.g. mci01.nii, mci02.nii); that a more complex group and subject name scheme such as ad01_0335_06_2a.nii, ad02_0335_06_2b.nii, etc. would not be recognized and generate an error. Is this correct?
>
> ########################################################################
>
> To unsubscribe from the FSL list, click the following link:
> https://www.jiscmail.ac.uk/cgi-bin/webadmin?SUBED1=FSL&A=1
>
>
>
> ________________________________
>
> To unsubscribe from the FSL list, click the following link:
> https://www.jiscmail.ac.uk/cgi-bin/webadmin?SUBED1=FSL&A=1
########################################################################
To unsubscribe from the FSL list, click the following link:
https://www.jiscmail.ac.uk/cgi-bin/webadmin?SUBED1=FSL&A=1
|