jq 문자열 인터폴레이션

1 개요[ | ]

jq 문자열 인터폴레이션
root@wsl:~# cat a.json
42
root@wsl:~# cat a.json | jq '"The input was \(.), which is one less than \(.+1)"'
"The input was 42, which is one less than 43"
root@wsl:~# cat a.json | jq -r '"The input was \(.), which is one less than \(.+1)"'
The input was 42, which is one less than 43

2 같이 보기[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}