1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-23 03:42:12 +02:00
tldr/pages/common/tspin.md
2024-10-20 00:02:10 +02:00

20 lines
514 B
Markdown

# 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`