0

I am running the following command

sed -i \
    -e "s/\[project\]/${GOOGLE_CLOUD_PROJECT}/" \
    -e "s/\[model-name\]/${MODEL_NAME}/" \
    -e "s/\[model-version\]/${MODEL_VERSION}/" \
    ${HOME}/cloudml-apigee-serving/apiproxy/targets/default.xml

returns

sed: -e: No such file or directory
JY2k
  • 2,749
  • 1
  • 26
  • 49
  • Possible duplicate of [sed in-place flag that works both on Mac (BSD) and Linux](https://stackoverflow.com/questions/5694228/sed-in-place-flag-that-works-both-on-mac-bsd-and-linux) – Sundeep Aug 23 '18 at 10:51

1 Answers1

1

Try with an argument after -i:

sed -i '' .....
Gilles Quenot
  • 143,367
  • 32
  • 199
  • 195