commit 455c9288b411bf3b3263081a05f51844a799ddc8
parent ce1c495672966812f52cda6da31a55f1b6d1a547
Author: Vincent Forest <vincent.forest@meso-star.com>
Date: Mon, 16 Jul 2018 10:03:38 +0200
Small fix of the dump_netcdf_data script
Ensure that the whole filename is used as basename of the generated file
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/dump_netcdf_data.sh b/src/dump_netcdf_data.sh
@@ -28,7 +28,7 @@ if [ ! -f $2 ]; then
fi
name=$(basename $2)
-name=${name%%.*}
+name=${name%.*}
ncdump -v $1 $2 \
| sed -n "/^ *$1 *=/,\$p" \