Skip to content

kjdev/lq

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lq

Command-line Labeled Tab-separated Values (LTSV) processor

Dependencies

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
--

About

Command-line Labeled Tab-separated Values (LTSV) processor

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages