-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
53 lines (39 loc) · 1.75 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
INSTALLATION:
Just run the following command:
make install
to install the binary and the man page. I know this works as-is on Ubuntu, but
on other operating systems it might be necessary to use the following form:
make install bin=<bin path> man=<man path>
SUMMARY:
TSV For Me is a command for aligning Tab-Separated Values[1]. It should not
have any trouble aligning unicode in UTF-8.
USAGE: tsvfm [options] [file]
-p <padding> Sets the minimum number of spaces between
lines to <padding>. The default is 2.
-r Right-align text within the table cells.
-s <separator> Sets the character making up the separator
line to <separator>. The default is '-'.
-S Do not print any separator line.
-l Use lax line length handling. With this
enabled, short lines are filled with empty
cells and long lines have cells trimmed.
-h Print this help information and exit.
-v Print version information and exit.
the 'file' parameter indicates which file to read from. If
left blank, the program reads from standard in.
With wide tables, it might be a good idea to pipe the output into `less -S`.
This will keep long lines from wrapping around to the beginning.
EXAMPLE:
File "example.tsv":
Last Name First Name Favorite Color
Smith Jill teal
O'Reilly Simon brown
Miller Maxwell extremely pale pink
Output of "tsvfm example.tsv":
Last Name First Name Favorite Color
--------------------------------------------
Smith Jill teal
O'Reilly Simon brown
Miller Maxwell extremely pale pink
LINKS:
[1]: http://www.iana.org/assignments/media-types/text/tab-separated-values