LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Error with Sed command (https://www.linuxquestions.org/questions/linux-newbie-8/error-with-sed-command-4175672536/)

296.saurabh 04-04-2020 07:19 AM

Error with Sed command
 
I am getting an error while using sed command
Code:

sed "3i\    "auth_url":$OS_AUTH_URL,\n    "region_name":$OS_REGION_NAME,\n    "endpoint_type":$OS_INTERFACE," -i "${ACCOUNTS_JSON}"
It gives an error:
sed: -e expression #1, char 45: unknown command: `,'

syg00 04-04-2020 07:26 AM

Duplicate - reported

rtmistler 04-04-2020 08:06 AM

Please continue working in your original thread with this added detail from it. No need to create a new thread as the problem evolves. This thread has been closed since your same post is already in that other thread.

https://www.linuxquestions.org/quest...le-4175672531/


All times are GMT -5. The time now is 08:41 AM.