-
| [root@test ~]# yq e '.spring.dataSource.username="aaa"' test.yaml [root@test ~]# yq e '.spring.dataSource.username111="aaa"' test.yaml  | 
Beta Was this translation helpful? Give feedback.
      
      
          Answered by
          
            pycgo
          
      
      
        Apr 15, 2021 
      
    
    Replies: 1 comment 5 replies
-
| how can i judge the key "uername111" is exist? then replace? | 
Beta Was this translation helpful? Give feedback.
                  
                    5 replies
                  
                
            
      Answer selected by
        pycgo
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
how can i judge the key "uername111" is exist? then replace?