Home > Enterprise >  Why is sed changed not saved in yaml file?
Why is sed changed not saved in yaml file?

Time:07-19

My command

sed -e 's,kurtburak,JohnMarkovic,g' < values-override.yaml 

Screen shows what I expected

server:
  configEnabled: true
  config:
    repositories: |
      - type: git
        url: https://github.com/JohnMarkovic/argocd.git
      - name: argo-helm
        type: helm
        url: https://argoproj.github.io/argo-helm

But

cat values-override.yaml 

shows

server:
  configEnabled: true
  config:
    repositories: |
      - type: git
        url: https://github.com/kurtburak/argocd.git
      - name: argo-helm
        type: helm
        url: https://argoproj.github.io/argo-helm

If I change to

sed -i

got

sed: no input files

Why?

CodePudding user response:

sed -i -e 's,kurtburak,JohnMarkovic,g' values-override.yaml 

  • Related