usage() {
cat >&2 <<EOF
-Usage: $0 [-c] <parameters file>
+Usage: $0 [OPTION] <parameters file>
Options:
-h print this help
-n dry-run mode (for debugging)
log "skipped (dry-run)"
else
echo "# ${cmd[@]}" > "$out"
- "${cmd[@]}" > "$out" 2>&1
+ "${cmd[@]}" >> "$out" 2>&1
tail -n4 "$out"
fi
done