From: Romulo Pinho Date: Tue, 8 May 2012 11:55:58 +0000 (+0200) Subject: correction with compressed file names X-Git-Tag: v1.3.0~40 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=eb8c16ffe02c747565cf356086b6ad7cf72056af;p=clitk.git correction with compressed file names --- diff --git a/scripts/create_mhd_4D.sh b/scripts/create_mhd_4D.sh index ff45d63..72c7728 100755 --- a/scripts/create_mhd_4D.sh +++ b/scripts/create_mhd_4D.sh @@ -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 -iname "*${prefix}*[0-9]*${suffix}*.[z*]raw" | sort` + listph=`find $1 -maxdepth 1 -iregex ".*${prefix}.*[0-9].*${suffix}.*.z*raw" | sort` file_name_4D="${prefix}4D${suffix}.mhd"