mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-07-25 09:15:32 +02:00
ttyplot: add page (#6679)
This commit is contained in:
parent
453ca6d4b4
commit
e5f8cd4537
1 changed files with 20 additions and 0 deletions
20
pages/linux/ttyplot.md
Normal file
20
pages/linux/ttyplot.md
Normal file
|
@ -0,0 +1,20 @@
|
|||
# ttyplot
|
||||
|
||||
> A realtime plotting utility for the command line with data input from stdin.
|
||||
> More information: <https://github.com/tenox7/ttyplot>.
|
||||
|
||||
- Plot the values `1`, `2` and `3` (`cat` prevents ttyplot to exit):
|
||||
|
||||
`{ echo {{1 2 3}}; cat } | ttyplot`
|
||||
|
||||
- Set a specific title and unit:
|
||||
|
||||
`{ echo {{1 2 3}}; cat } | ttyplot -t {{title}} -u {{unit}}`
|
||||
|
||||
- Use a while loop to continuously plot random values:
|
||||
|
||||
`{ while {{true}}; do echo {{$RANDOM}}; sleep {{1}}; done } | ttyplot`
|
||||
|
||||
- Parse the output from `ping` and visualize it:
|
||||
|
||||
`ping {{8.8.8.8}} | sed -u '{{s/^.*time=//g; s/ ms//g}}' | ttyplot -t "{{ping to 8.8.8.8}}" -u {{ms}}`
|
Loading…
Add table
Reference in a new issue