Hi,
If you prepared an fsf-file, and you want to change only certain pieces
of it, for example subject names, I would recommend to set clear Strings
at this position (e.g. 'XXsubjXX' ) and to use a sed call to replace
these patterns with the real names. You can call this in a loop to
simplify the whole editing.
subjlst="S1 S2 S3 S3"
for csubj in $subjlst
do
sed -e 's/XXsubjXX/$csubj/g' fsftemplate.fsf > subjfile.fsf
done
If I am not wrong, there have been some examples and discussions about
this several weeks ago.
Good luck,
wolf
On 01/27/2011 11:55 AM, Chris Martin wrote:
> Hi,
>
> I need to edit the FEAT design.fsf file (as output from the FEAT GUI) so that I can rerun multiple analyses with slight changes in parameters. I was hoping to do the editing in MatLab.
>
> Having had a quick look at the .fsf file, I wonder if there is more information about its content/structure so that I can be surer of how to make the necessary edits..?
>
> Or perhaps someone already even has a script to assist in doing this..?
>
> Many thanks for any help,
>
> Chris
|