Commit 2a28280a authored by Plaszczynski Stephane's avatar Plaszczynski Stephane
Browse files

escape * for grep

parent c0478ca8
......@@ -63,9 +63,6 @@ fi
######################################
#escape problematic characters
varesc=$(printf "%q" "$var")
file=$(readlink -e $parFile)
parbase=$(basename $file)
dirout=${parbase%".par"}_mprof_"$var"
......@@ -114,7 +111,8 @@ cp $CAMELROOT/work/tools/awk/genrand.awk .
#
#input file -> transforme en pico et enleve var
grep -v "$varesc" $file > parfile_in
#need to escaoe * for grep command
grep -v "${var/\*/\\*}" $file > parfile_in
#compute var: here no escape
echo "fix $var cosmo $zeval" >> parfile_in
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment