터미널 명령의 결과를 json으로 변환하기

jc는 터미널에서 사용하는 많은 cli 툴들의 결과값을 json으로 변환해 주는 도구입니다. 일반적인 텍스트라면 필요한 정보를 찾기 위해서는 스스로 가공을 해야하는데, jc를 사용하면 파서를 선택하여 자동으로 json을 뽑아 낼 수 있고 jq등을 사용하여 그 안에서 필요한 정보를 추출 하기가 쉬워집니다. 굉장히 많은 수의 cli 툴들을 지원하고 있으므로 설치해두고 필요시 json으로 변경하여 사용하시면 좋을 듯합니다.

GitHub - kellyjonbrazil/jc: CLI tool and python library that converts the output of popular command-line tools, file-types, and common strings to JSON, YAML, or Dictionaries. This allows piping of output to tools like jq and simplifying automation scripts.

GitHub

GitHub - kellyjonbrazil/jc: CLI tool and python library that converts the output of popular command-line tools, file-types, and common strings to JSON, YAML, or Dictionaries. This allows piping of output to tools like jq and simplifying automation scripts.

더 많은 콘텐츠를 보고 싶다면?

또는

이미 회원이신가요?

2022년 11월 22일 오전 5:57

댓글 0