diff --git a/pages/common/tspin.md b/pages/common/tspin.md new file mode 100644 index 000000000..5b66a325c --- /dev/null +++ b/pages/common/tspin.md @@ -0,0 +1,20 @@ +# tspin + +> A log file highlighter based on the `less` pager and basically behaves like any pager. +> More information: . + +- 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`