]> Creatis software - clitk.git/commitdiff
further corrections in 4D mhd creation
authorRomulo Pinho <romulo.pinho@lyon.unicancer.fr>
Wed, 9 May 2012 13:14:02 +0000 (15:14 +0200)
committerRomulo Pinho <romulo.pinho@lyon.unicancer.fr>
Wed, 9 May 2012 13:14:02 +0000 (15:14 +0200)
scripts/create_mhd_4D.sh

index 72c7728750a21c64278f6be3c979d60c9a7d6665..70e21bbd61be22e96b6ea4ef027380fed5e468f8 100755 (executable)
@@ -103,7 +103,7 @@ do
     fi
     nbph=`find $1 -maxdepth 1 -iname "*${prefix}*[0-9]*${suffix}*.mhd" | wc -l`
     orig=`find $1 -maxdepth 1 -iname "*${prefix}*[0-9]*${suffix}*.mhd" | sort | head -n 1`
-    listph=`find $1 -maxdepth 1 -iregex ".*${prefix}.*[0-9].*${suffix}.*.z*raw" | sort`
+    listph=`find $1 -maxdepth 1 -iname ".*${prefix}.*[0-9].*${suffix}.*.*raw" -iregex ".*.z*raw" | sort`
 
     file_name_4D="${prefix}4D${suffix}.mhd"