Ltsview
Ltsview - Labeled Tab Separated Value manipulator Viewer
Supported
- OSX or Ubuntu
- Ruby 1.9.3 or 2.0.0 or 2.1.0
Installation
Add this line to your application's Gemfile:
gem 'ltsview'
And then execute:
$ bundle
Or install it yourself as:
$ gem install ltsview
Usage
$ cat logfile.ltsv | ltsview
key select
$ cat logfile.ltsv | ltsview -k firstkey,therdkey
key select and reorder
$ cat logfile.ltsv | ltsview -k firstkey,therdkey --reorder
ignore key select
$ cat logfile.ltsv | ltsview -i firstkey,secondkey
regex key select
$ cat logfile.ltsv | ltsview -r key:regex
load file
$ ltsview -f logfile.ltsv
render json
$ cat logfile.ltsv | ltsview -j
raw mode
$ cat logfile.ltsv | ltsview -l
appended tag
$ cat logfile.ltsv | ltsview -t sample.tag
Option
-k
,--keys VAL
to display keys select-i
,--ignore-key VAL
to ignore keys select display-r
,--regexp KEY:VAL
-f
,--file VAL
to load ltsv format file-j
,--json
to render json format-t
,--tag
to append tag-l
,--ltsv
to raw format-o
,--reorder
to reorder keys with--keys
option--no-colors
to no color
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request