Skip to content
Snippets Groups Projects
Commit a2218f5d authored by Mark Jenkinson's avatar Mark Jenkinson
Browse files

Fixed buglet in sed expression

parent 7ff70b1b
No related branches found
No related tags found
No related merge requests found
...@@ -57,7 +57,7 @@ if [ `cat ${tmpbase} | grep "^[ ]*$keyword[ ]*=[ ]*" | wc -l` = 0 ] ; then ...@@ -57,7 +57,7 @@ if [ `cat ${tmpbase} | grep "^[ ]*$keyword[ ]*=[ ]*" | wc -l` = 0 ] ; then
echo "/>" >> ${tmpbase}2 echo "/>" >> ${tmpbase}2
else else
# the keyword is present so change its value # the keyword is present so change its value
cat ${tmpbase} | sed "s/^[ ]*$keyword[ ]*=[ ]*\'.*\'/ $keyword = \'$value\'/" > ${tmpbase}2 cat ${tmpbase} | sed "s/^[ ]*$keyword[ ]*=.*/ $keyword = \'$value\'/" > ${tmpbase}2
fi fi
${FSLDIR}/bin/fslcreatehd ${tmpbase}2 $imfile ${FSLDIR}/bin/fslcreatehd ${tmpbase}2 $imfile
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment