tspin
all
A log file highlighter based on the `less` pager and basically behaves like any pager.
More info →Options (2)
-p, --printbooleanRead from a file and print to `stdout` without paging
Example:
tspin {{path/to/file.log}} {{[-p|--print]}}-f, --followbooleanFollow a file (mimics `tail -f`) and highlight new entries
Example:
tspin {{[-f|--follow]}} {{path/to/file.log}}Examples (8)
View a log file using the default pager (`less`)
tspin path/to/file.logRead from a file and print to `stdout` without paging
tspin path/to/file.log [-p|--print]Follow a file (mimics `tail -f`) and highlight new entries
tspin [-f|--follow] path/to/file.logHighlight specific groups only (possible values: `numbers`, `urls`, `pointers`, `dates`, `paths`, `quotes`, `key-value-pairs`, `uuids`, `ip-addresses`, `processes`, `json`)
tspin --enable urls,ip-addresses,... path/to/file.logUse a custom pager (the `[FILE]` string is a required literal placeholder)
tspin --pager "bat -p [FILE]" path/to/file.logHighlight custom strings with custom colors
tspin --highlight red:ERROR,WARNING,... path/to/file.logRun the provided command and view the output in `less`
tspin --exec='command'made by @shridhargupta | data from tldr-pages