#####################################################################
if [ $# -lt 1 ]
then
- echo "Usage: create_mhd_4D.sh directory output_file_name"
+ echo "Usage: create_mhd_4D.sh directory output_file_name(without path)"
exit 1
fi
cd $1
-nbph=`find -iname *0.mhd | wc -l`
+nbph=`find . -iname "*0.mhd" | wc -l`
if [ $nbph = 0 ]
then
echo "Error: no phase found"