mac에 jq 설치

  • xixixaxa
    (OOooOOoo)
  • xixixaxa's Avatar 이 글의 작성자
  • Offline
  • Newbie
  • Newbie
더보기
31 Mar 2023 10:09 - 31 Mar 2023 10:10 #32029 작성자: xixixaxa
xixixaxa 님의 글: mac에 jq 설치
% brew install jq
Running `brew update --auto-update`...
==> Fetching dependencies for jq: oniguruma
==> Fetching oniguruma
==> Downloading https://ghcr.io/v2/homebrew/core/oniguruma/manifests/6.9.8
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/oniguruma/blobs/sha256:ce1351a94
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha
######################################################################## 100.0%
==> Fetching jq
==> Downloading https://ghcr.io/v2/homebrew/core/jq/manifests/1.6-1
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/jq/blobs/sha256:4622927182fbc7bf
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha
######################################################################## 100.0%
==> Installing dependencies for jq: oniguruma
==> Installing jq dependency: oniguruma
==> Pouring oniguruma--6.9.8.arm64_ventura.bottle.tar.gz
 /opt/homebrew/Cellar/oniguruma/6.9.8: 14 files, 1.4MB
==> Installing jq
==> Pouring jq--1.6.arm64_ventura.bottle.1.tar.gz
 /opt/homebrew/Cellar/jq/1.6: 18 files, 1.2MB
==> Running `brew cleanup jq`...
Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP.
Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`).
==> `brew cleanup` has not been run in the last 30 days, running now...
Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP.
Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`).
Removing: /Users/xixixaxa/Library/Caches/Homebrew/kubernetes-cli--1.26.1... (15.9MB)
Removing: /Users/xixixaxa/Library/Logs/Homebrew/kubernetes-cli... (64B)
% jq
jq - commandline JSON processor [version 1.6]

Usage:  jq [options] <jq filter> [file...]
        jq [options] --args <jq filter> [strings...]
        jq [options] --jsonargs <jq filter> [JSON_TEXTS...]

jq is a tool for processing JSON inputs, applying the given filter to
its JSON text inputs and producing the filter's results as JSON on
standard output.

The simplest filter is ., which copies jq's input to its output
unmodified (except for formatting, but note that IEEE754 is used
for number representation internally, with all that that implies).

For more advanced filters see the jq(1) manpage ("man jq")
and/or https://stedolan.github.io/jq

Example:

        $ echo '{"foo": 0}' | jq .
        {
                "foo": 0
        }
Time to create page: 0.049 seconds
Powered by Kunena Forum