Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/progrhyme/bash-logltsv
A Handy CLI to print LTSV logs
https://github.com/progrhyme/bash-logltsv
Last synced: 2 days ago
JSON representation
A Handy CLI to print LTSV logs
- Host: GitHub
- URL: https://github.com/progrhyme/bash-logltsv
- Owner: progrhyme
- Created: 2014-12-10T11:50:52.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2014-12-13T09:18:09.000Z (almost 10 years ago)
- Last Synced: 2023-08-01T06:43:30.826Z (over 1 year ago)
- Language: Shell
- Size: 121 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# logltsv
A Handy CLI to print LTSV logs.
# SYNOPSYS
```
$ logltsv key1:value1 key2:value2 [...]
time:2014-12-10T20:55:11+0900 key1:value1 key2:value2 ...
```# DESCRIPTION
This script prints arguments in tab-separated way, adding *time* key-value at
the first entry of the line.Without installing this script, you can also write an alias in your shell for
the same purpose.Here is an example:
```sh
__logltsv() {
echo time:$(date +%FT%H:%S:%S%z) $@ | tr -s ' ' '\t'
}
alias logltsv=__logltsv
```# AUTHORS
YASUTAKE Kiyoshi
# LICENSE
Copyright (C) 2014 YASUTAKE Kiyoshi.
This library is free software; you can redistribute it and/or modify it under
the same terms as the GNU General Public License or Artistic License.