[yq] yq 사용법 및 특정 yaml 파일의 값 변경하기
yq 간단 사용법 - 값 확인 yq yq is a lightweight and portable command-line YAML processor mikefarah.gitbook.io json의 jq처럼 yaml을 파싱하거나 수정해줄 수 있게 함. 형식: yq [명령어] [옵션] '.키 = "값"' 파일명.yml 따옴표, 쌍따옴표는 빠트리면 안됨! 이것때문에 애를 많이 먹었다. 예시: # ingnoh.yml test: yq ingnoh: age: 3 whoami: monkey hello: world: yes 위 예시 파일로부터 특정 키 값을 확인해볼 수 있다. [~] yq eval '.test' ingnoh.yml yq [~] # eval은 e로 줄여 쓸 수 있다. [~] yq e '.hello.world..
Linux.
2021. 4. 19. 14:47
반응형
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- RancherDesktop
- Vault
- pgloader
- Linux
- Database
- JPA
- kotlin
- hashicorp
- terraform
- Puppeteer
- Gradle
- etc
- Spring Cloud Config
- Node.js
- eureka
- shell
- 코딩테스트
- javascript
- IntelliJ
- AWS IoT
- react
- postgresql
- jQuery
- Docker
- Java
- Git
- JEST
- spring boot
- mysql
- AWS
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
글 보관함