title: How can i add a block of line after a specific word or line in a file using bash script?
body: <p>This is file  content </p>
  
  <pre><code>  name: kubernetes
  contexts:
  - context:
      cluster: kubernetes
      user: kubernetes-admin
    name: kubernetes-admin@kubernetes
  current-context: kubernetes-admin@kubernetes
  kind: Config
  preferences: {}
  users:
  - name: kubernetes-admin
    user:
  </code></pre>
  
  <p>i need to add the following block of code after the word  contexts which is second line in above file content </p>
  
  <pre><code>- context:
         cluster: kubernetes
         namespace: myco-dev
         user: kubernetes-admin
       name: myco/DEV
     - context:
         cluster: kubernetes
          namespace: myco-ua
          user: kubernetes-admin
       name: myco/UA
  </code></pre>
  
  <p>so the final output should look like</p>
  
  <pre><code>contexts:
  - context:
      cluster: kubernetes
      user: kubernetes-admin
    name: kubernetes-admin@kubernetes
  - context:
      cluster: kubernetes
      user: kubernetes-admin
      namespace: myco-dev
    name: myco/DEV
  - context:
      cluster: kubernetes
      user: kubernetes-admin
      namespace: myco-ua
    name: myco/UA
  current-context: kubernetes-admin@kubernetes
  kind: Config
  preferences: {}
  </code></pre>