]> Creatis software - clitk.git/commitdiff
Allow for uncertainties which name does not start with output
authorSimon Rit <simon.rit@creatis.insa-lyon.fr>
Mon, 30 Sep 2013 14:09:44 +0000 (16:09 +0200)
committerSimon Rit <simon.rit@creatis.insa-lyon.fr>
Mon, 30 Sep 2013 14:09:44 +0000 (16:09 +0200)
cluster_tools/gate_power_merge.sh

index fe1784a796492b106e635668058926e5aa118048..f82a11931d69cbd3df28c289a620ccd461bdf4bc 100755 (executable)
@@ -517,7 +517,7 @@ done
 
 echo ""
 echo "Merging done. Special case for statistical uncertainty"
-for outputfile in $(find "${outputdir}" -regextype 'posix-extended' -type f -regex "${outputdir}/output.*\.(hdr|mhd|root|txt)" | awk -F '/' '{ print $NF; }' | sort | uniq)
+for outputfile in $(find "${outputdir}" -regextype 'posix-extended' -type f -regex "${outputdir}/.*\.(hdr|mhd|root|txt)" | awk -F '/' '{ print $NF; }' | sort | uniq)
 do
     merge_dispatcher_uncertainty "${outputfile}"
 done