Uh, sorry. With my example you will overwrite the fsf files, so you
should of course include the variable in the name for the new fsf file...
subjlst="S1 S2 S3 S3"
for csubj in $subjlst
do
sed -e 's/XXsubjXX/$csubj/g' fsftemplate.fsf > ${csubj}.fsf
done
|