Hi - I guess you're not using bash or sh as your shell, so this syntax
would be wrong?
You can just create this text file by hand using any text editor, or
even just
ls -1 CON_04.nii.gz CON_08.nii.gz CON_10.nii.gz CON_13.nii.gz
CON_19.nii.gz PAT_02.nii.gz PAT_05.nii.gz PAT_11.nii.gz PAT_18.nii.gz
PAT_19.nii.gz > template_list
Cheers
On 4 Sep 2009, at 22:48, Rajagopalan, Venkateswaran wrote:
>
> Dear FSL Users,
>
> I am new to Linux OS. I tried the following
>
> "for g in CON_04.nii.gz CON_08.nii.gz CON_10.nii.gz CON_13.nii.gz
> CON_19.nii.gz \
> PAT_02.nii.gz PAT_05.nii.gz PAT_11.nii.gz PAT_18.nii.gz
> PAT_19.nii.gz; do
> echo $g >> template_list
> done"
>
> to create a template list of my data set as described in FSL_VBM
> documentation page. I typed this in the terminal window and it gives
> me the following error "g undefined variable "for" command not
> found. I don't have much programming experience too. Can you pleas
> tell me the mistake i am making here.
>
> Thanks
>
> venkat
>
>
> ===================================
> P Please consider the environment before printing this e-mail
>
>
>
> Cleveland Clinic is ranked one of the top hospitals
> in America by U.S. News & World Report (2008).
> Visit us online at http://www.clevelandclinic.org for
> a complete listing of our services, staff and
> locations.
>
>
> Confidentiality Note: This message is intended for use
> only by the individual or entity to which it is addressed
> and may contain information that is privileged,
> confidential, and exempt from disclosure under applicable
> law. If the reader of this message is not the intended
> recipient or the employee or agent responsible for
> delivering the message to the intended recipient, you are
> hereby notified that any dissemination, distribution or
> copying of this communication is strictly prohibited. If
> you have received this communication in error, please
> contact the sender immediately and destroy the material in
> its entirety, whether electronic or hard copy. Thank you.
>
---------------------------------------------------------------------------
Stephen M. Smith, Professor of Biomedical Engineering
Associate Director, Oxford University FMRIB Centre
FMRIB, JR Hospital, Headington, Oxford OX3 9DU, UK
+44 (0) 1865 222726 (fax 222717)
[log in to unmask] http://www.fmrib.ox.ac.uk/~steve
---------------------------------------------------------------------------
|