I am trying to run FEAT for 45 subjects using a shell script found online and added few modifications for my data. Each subject has 2 runs. I had error with execution of the 'sed' command, but I am not sure what is wrong. I created a design fsf files from sub-08 for both runs.
the shell script was
###########################################
#!/bin/bash
for id in `seq -w 1 45` ; do
subj="sub-$id"
echo "===> Starting processing of $subj"
echo
cd $subj
cp ../design_LR.fsf .
cp ../design_RL.fsf .
sed -i '' "s|sub-08|${subj}|g" \
design_LR.fsf
sed -i '' "s|sub-08|${subj}|g" \
design_RL.fsf
echo "===> Starting feat for run LR"
feat design_LR.fsf
echo "===> Starting feat for run RL"
feat design_RL.fsf
echo
cd ..
done
echo
#######################################################
The error I receive is:
##############################################
===> Starting processing of sub-01
sed: can't read s|sub-08|sub-01|g: No such file or directory
sed: couldn't open temporary file ./sedUctna0: Permission denied
sed: can't read s|sub-08|sub-01|g: No such file or directory
sed: couldn't open temporary file ./sedUwsqL2: Permission denied
===> Starting feat for run LR
To view the FEAT progress and final report, point your web browser at /mnt/d/DATA/emo/sub-08/tfMRI_EMOTION_LR_hp200_s8.feat/report_log.html
##############################################################################################
It started from sub-8's folder, and kept looping in the same folder the whole process!
Can someone help me and tell me exactly what is wrong with the script?
I am using a WSL ubuntu in windows 10, which works fine for FEAT with single subject data input.
Thanks
Mudathir
########################################################################
To unsubscribe from the FSL list, click the following link:
https://www.jiscmail.ac.uk/cgi-bin/webadmin?SUBED1=FSL&A=1
|