Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

how to replace string in a json sed

#You can replace like below

#Linux
sed -i 's/old-text/new-text/g' "/path/to/the-file"

#MacOS
sed -i "" 's/old-text/new-text/g' "/path/to/the-file"
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #replace #string #json #sed
ADD COMMENT
Topic
Name
7+4 =