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 VALto display keys select -
-i,--ignore-key VALto ignore keys select display -
-r,--regexp KEY:VAL -
-f,--file VALto load ltsv format file -
-j,--jsonto render json format -
-t,--tagto append tag -
-l,--ltsvto raw format -
-o,--reorderto reorder keys with--keysoption -
--no-colorsto no color
Inspired by
Author
- Naoto SHINGAKI
Contributors (Thanks!)
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