Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kjdev/lq
Command-line Labeled Tab-separated Values (LTSV) processor
https://github.com/kjdev/lq
Last synced: 25 days ago
JSON representation
Command-line Labeled Tab-separated Values (LTSV) processor
- Host: GitHub
- URL: https://github.com/kjdev/lq
- Owner: kjdev
- License: mit
- Created: 2013-04-17T00:48:28.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2013-04-17T02:04:59.000Z (over 11 years ago)
- Last Synced: 2024-11-18T00:52:39.363Z (about 2 months ago)
- Language: C
- Size: 109 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# lq
Command-line Labeled Tab-separated Values (LTSV) processor
## Dependencies
* [ltsv4c](https://github.com/9re/ltsv4c)
## Build
```
% cmake .
% make
% make install
```## Example
test.txt:
```
a:2013/04/17 12:00:00 +0900 b:x.x.x.x c:hoge
b:2013/04/17 12:01:00 +0900 c:x.y.x.y a:foo d:new
```Output of test.txt:
```
% lq -f test.txt
--
a: 2013/04/17 12:00:00 +0900
b: x.x.x.x
c: hoge
--
b: 2013/04/17 12:01:00 +0900
c: x.y.x.y
a: foo
d: new
--
```Output of the label 'a' and 'b' in test.txt:
```
% lq -f test.txt -l a,b
--
a: 2013/04/17 12:00:00 +0900
b: x.x.x.x
--
a: foo
b: 2013/04/17 12:01:00 +0900
--
```Output of the label 'c' and 'd' in test.txt:
```
% lq -f test.txt -l c,d
--
c: hoge
--
c: x.y.x.y
d: new
--
``````
% lq -f test.txt -l c,d -v
--
c: hoge
d: (null)
--
c: x.y.x.y
d: new
--
```Output of stdin:
```
% cat test.txt | lq
--
a: 2013/04/17 12:00:00 +0900
b: x.x.x.x
c: hoge
--
b: 2013/04/17 12:01:00 +0900
c: x.y.x.y
a: foo
d: new
--
```