Hi, You are missing the last line, which is "done". If you put it all in one line then you need a semicolon before the word "done". All the best, Mark On 24 Jul 2014, at 12:00, Maria Diez Cirarda <[log in to unmask]> wrote: > Dear Experts, > > I am trying to do VBM between groups. > I have two groups: > -group 1= 15 subjects > -group 2= 33 subjects > So, I have to select the same number of subjects from each group (15 subjects) to create the template. But I have problems with creating the template list. > After creating the file called template_list in my vbm directory, I run the command: "for g in CON_2304.nii.gz CON_2878.nii.gz CON_3456.nii.gz CON_4133.nii.gz CON_4690.nii.gz \ PAT_2042.nii.gz > PAT_2632.nii.gz PAT_3193.nii.gz PAT_4134.nii.gz PAT_6659.nii.gz; do > echo $g >> template_list" > > But doesn´t appear "done", but ">". > > I send attached the template list command and the file called "template_list" that I created. > > Any help will be appreciated. > > Thank you in advance, > > > María. > > > > > > > > > <command_template_list.png><template_list_file.png>