hi, that line from the wiki appears to be in tcsh syntax, you are using bash, which is the default shell of most operating systems. you can try either in bash, like this:
if [ ! -e fsaverage ]; then ln -s $FREESURFER_HOME/subjects/fsaverage; fi ...or in tcsh, which you might need to install first, then invoke it, like: tcsh if (! -e fsaverage) ln -s $FREESURFER_HOME/subjects/fsaverage regards, andreas On Wednesday, March 28, 2012 12:40:38 Ahmed, F, Me <fah...@sun.ac.za> wrote: > Hello, > > I'm trying to run qdec on my own data and I'm trying to create fsaverage. > Following the wiki tutorial, I copied the command: > > if (! -e fsaverage) ln -s $FREESURFER_HOME/subjects/fsaverage > > but I got the following error: > > bash: syntax error near unexpected token `ln' > > Can anyone help me in understanding why this happened? > > Thanks very much, > Fatima > > > > ________________________________ > E-pos vrywaringsklousule > > Hierdie e-pos mag vertroulike inligting bevat en mag regtens geprivilegeerd > wees en is slegs bedoel vir die persoon aan wie dit geadresseer is. Indien > u nie die bedoelde ontvanger is nie, word u hiermee in kennis gestel dat u > hierdie dokument geensins mag gebruik, versprei of kopieer nie. Stel ook > asseblief die sender onmiddellik per telefoon in kennis en vee die e-pos > uit. Die Universiteit aanvaar nie aanspreeklikheid vir enige skade, > verlies of uitgawe wat voortspruit uit hierdie e-pos en/of die oopmaak van > enige l?ers aangeheg by hierdie e-pos nie. > > E-mail disclaimer > > This e-mail may contain confidential information and may be legally > privileged and is intended only for the person to whom it is addressed. If > you are not the intended recipient, you are notified that you may not use, > distribute or copy this document in any manner whatsoever. Kindly also > notify the sender immediately by telephone, and delete the e-mail. The > University does not accept liability for any damage, loss or expense > arising from this e-mail and/or accessing any files attached to this > e-mail. _______________________________________________ Freesurfer mailing list Freesurfer@nmr.mgh.harvard.edu https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer The information in this e-mail is intended only for the person to whom it is addressed. If you believe this e-mail was sent to you in error and the e-mail contains patient information, please contact the Partners Compliance HelpLine at http://www.partners.org/complianceline . If the e-mail was sent to you in error but does not contain patient information, please contact the sender and properly dispose of the e-mail.