1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-22 00:42:08 +02:00

tspin: add page (#13645)

This commit is contained in:
Arnaud Künzi 2024-09-15 05:27:13 +00:00 committed by GitHub
parent 105a25f935
commit a27831767a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

20
pages/common/tspin.md Normal file
View file

@ -0,0 +1,20 @@
# tspin
> A log file highlighter based on the `less` pager and basically behaves like any pager.
> More information: <https://github.com/bensadeh/tailspin>.
- Read from file and view in `less`:
`tspin {{path/to/application.log}}`
- Read from another command and print to stdout:
`journalctl -b --follow | tspin`
- Read from file and print to `stdout`:
`tspin {{path/to/application.log}} --print`
- Read from stdin and print to `stdout`:
`echo "2021-01-01 12:00:00 [INFO] This is a log message" | tspin`