mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-29 23:24:55 +02:00
21 lines
684 B
Markdown
21 lines
684 B
Markdown
![]() |
# ttyplot
|
||
|
|
||
|
> 실시간 커맨드라인 플로팅 유틸리티로, `stdin`으로 데이터 입력을 받습니다.
|
||
|
> 더 많은 정보: <https://github.com/tenox7/ttyplot>.
|
||
|
|
||
|
- 값 `1`, `2`, `3`을 플로팅 (`cat`은 ttyplot의 종료를 방지):
|
||
|
|
||
|
`{ echo {{1 2 3}}; cat } | ttyplot`
|
||
|
|
||
|
- 특정 제목과 단위를 설정:
|
||
|
|
||
|
`{ echo {{1 2 3}}; cat } | ttyplot -t {{제목}} -u {{단위}}`
|
||
|
|
||
|
- while 루프를 사용하여 랜덤 값을 지속적으로 플로팅:
|
||
|
|
||
|
`{ while {{true}}; do echo {{$RANDOM}}; sleep {{1}}; done } | ttyplot`
|
||
|
|
||
|
- `ping`의 출력을 파싱하여 시각화:
|
||
|
|
||
|
`ping {{8.8.8.8}} | sed -u '{{s/^.*time=//g; s/ ms//g}}' | ttyplot -t "{{8.8.8.8로의 핑}}" -u {{ms}}`
|