Adding lines with sed - aavedula/how-to-notes GitHub Wiki

Back

find . -type f -name "*.yml" -print0 | xargs -0 sed -i''  -e $'s/- henry-ford-health-system/- henry-ford-health-system\\\n  - health-alliance-plan/g'

The -i '' is needed on OSX.
The $' ' and \\n is the only way to get the new line in bash.