Help us shape the future of Go! Take the 2026 Go Developer Survey

ltsvp

command module
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 11, 2016 License: MIT Imports: 9 Imported by: 0

README

ltsvp

Build Status

Print selected parts of LTSV from each FILE to standard output.

Usage

$ ltsvp OPTION... [FILE]...
 
Options:
  -k, --keys=LIST
                 select only these keys (required)
  -D, --output-delimiter=STRING
                 use STRING to separate parts (default: \t)
  -r, --remain-ltsv
                 print selected parts as LTSV
  -h, --help
                 display this help text and exit
  -v, --version
                 output version information and exit
 
LIST is made up of keys separated by commas.
  host           # Select host
  host,time,ua   # Select host, time, and ua

Installation

go get
go get github.com/kusabashira/ltsvp

Options

-h, --help

Display the usage and exit.

-v, --version

Output the version of ltsvp.

-k, --keys=LIST

Select only specified keys.

Keys separated by a ,.

# select only host
ltsvp --keys=host
 
# select only host, time, and ua
ltsvp --keys=name,time,ua
 
# select only "foo,bar" and "baz"
ltsvp --keys="foo\,bar,baz"
syntax of keys list

Here is the syntax of headers in extended BNF.

keys = key , { "," , key }
key  = { letter | "\," }

letter is a unicode character other than ,.

-D, --output-delimiter=STRING

Change the output delimiter to STRING. STRING is unicode characters.

# Outputs with a slash delimited
ltsvp --keys=time,host --output-delimiter=/
 
# Outputs with a "::" delimited
ltsvp --keys=time,host --output-delimiter=::
-r, --remain-ltsv

Output selected parts in LTSV format.

# Output as LTSV
ltsvp --keys=time,host --remain-ltsv

License

MIT License

Author

kusabashira kusabashira227@gmail.com

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL