bugfix: properly quote value in awk script

Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
This commit is contained in:
Steven Armstrong 2011-06-16 22:52:18 +02:00
parent 2ffd5c837b
commit b7921451c2
1 changed files with 1 additions and 1 deletions

View File

@ -41,7 +41,7 @@ DONE
# change value
cat << DONE
awk -F "$delimiter" '
/${key}${delimiter}*/{gsub(/$value_is/, $value_should)};{print}' "$file" > "${file}+" \
/${key}${delimiter}*/{gsub(/$value_is/, "$value_should")};{print}' "$file" > "${file}+" \
&& mv "${file}+" "$file"
DONE