Update cheatsheets

This commit is contained in:
ivuorinen
2024-09-16 00:17:25 +00:00
parent 0097d6bbd1
commit c5566dcc1c
3 changed files with 30 additions and 1 deletions

25
tldr/tspin Normal file
View File

@@ -0,0 +1,25 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# 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`