tsv2mdtbl

command module
v0.0.0-...-fbf74f4 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2019 License: MIT Imports: 12 Imported by: 0

README

tsv2mdtbl

Usage

Usage of tsv2mdtbl:
   tsv2mdtbl [<inputFileName>]
  -H	use header
  -d string
    	delimiter character (default "\t")
  -delimiter string
    	delimiter character (default "\t")
  -header
    	use header

Install

go get -u github.com/watarukura/tsv2mdtbl

Example

$ echo num1\tnum2\tnum3\n1\t2\t3 | tsv2mdtbl --header                                                                
| NUM1 | NUM2 | NUM3 |
|------|------|------|
|    1 |    2 |    3 |
NUM1 NUM2 NUM3
1 2 3
$ cat testdata/TEST2.txt
"num1","num2"
"1","2"
"3","4
5"
$ tsv2mdtbl --header --delimiter "," testdata/TEST2.txt
| NUM1 | NUM2   |
|------|--------|
|    1 |      2 |
|    3 | 4<br>5 |
NUM1 NUM2
1 2
3 4
5

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