Cornelius Werner wrote:
> Hi,
>
> something like
>
> cat design.fsf | \ sed "s/inputfile1/inputfile2/g" | \
> cat>design.fsf
>
> should do the trick. At least, that's how I do it. Look up the "sed"
> documentation for more tricks.
We use a bit another way. We append the feat-file with the new data:
for block in *.nii.gz; do
echo 'set feat_files(1) "/Path/to your/'$block'"' >> design.feat
feat design.feat
done
This gives an accurate log of what we ran in which order. It also grows
the design file over time, but you can control for that "manually" ;)
Andrej
> Hth Cornelius
>
> On Tue, Jun 21, 2011 at 4:42 PM, Enzo
> Tagliazucchi<[log in to unmask]> wrote:
>> Hi all,
>>
>> I've created a design (design.fsf) with Feat and want to run it on
>> several subjects. Is there a simple way to change the input
>> filename when I run the script (using "feat design.fsf") so I can
>> interface it with a more general bash script?
>>
>> Thank you very much for your help,
>>
>> Enzo
>>
>
>
>
|