From eb8c16ffe02c747565cf356086b6ad7cf72056af Mon Sep 17 00:00:00 2001 From: Romulo Pinho Date: Tue, 8 May 2012 13:55:58 +0200 Subject: [PATCH] correction with compressed file names --- scripts/create_mhd_4D.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" -- 2.47.1