我有一种情况,我需要调用一个脚本bash c ++,然后在另一个bash脚本中调用它:
EPSILONS=(0.1)
INPUT="/home/garrett/dev/nearness/data/objectDescriptions"
FEATURES="18"
DISTANCE_MEASURE="sgmd"
OUTPUT_PREFIX="output_5_old_bulk"
TIME_OUTPUT=$OUTPUT_PREFIX"_time"
BIN="/home/garrett/dev/nearness/recursive/bin/nearness"
echo "$INPUT"
for e in "${EPSILONS[@]}"
do
echo "$e"
echo "$e" >> "$TIME_OUTPUT"
echo "$BIN"
/usr/bin/time -v "$BIN" -d "$DISTANCE_MEASURE" -e "$e" -f "$FEATURES" -o "$OUTPUT_PREFIX"_e"$e" "$INPUT"
echo
echo >> "$TIME_OUTPUT"
echo "Saved to $OUTPUT_PREFIX"_e"$e"
done
当我运行bashscript.sh时,下面是我面临的错误:
语法错误:未终止的引用字符串