From a27831767abe5946a3f55c93daa5522294297675 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Arnaud=20K=C3=BCnzi?= <22870774+ArnaudKunzi@users.noreply.github.com> Date: Sun, 15 Sep 2024 05:27:13 +0000 Subject: [PATCH] tspin: add page (#13645) --- pages/common/tspin.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 pages/common/tspin.md diff --git a/pages/common/tspin.md b/pages/common/tspin.md new file mode 100644 index 0000000000..5b66a325c6 --- /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`