Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

add line in yaml file using sed

sed -i "/callbacks:$/a
    - 'https://d1.example.com/callback'" a.yaml
Source by unix.stackexchange.com #
 
PREVIOUS NEXT
Tagged: #add #line #yaml #file #sed
ADD COMMENT
Topic
Name
2+9 =