@@ -9,45 +9,46 @@ SYNOPSIS
99 tablizer [regex,...] [-r file] [flags]
1010
1111 Operational Flags:
12- -c, --columns string Only show the speficied columns (separated by ,)
13- -v, --invert-match select non-matching rows
14- -n, --numbering Enable header numbering
15- -N, --no-color Disable pattern highlighting
16- -H, --no-headers Disable headers display
17- -s, --separator string Custom field separator
18- -k, --sort-by int|name Sort by column (default: 1)
19- -z, --fuzzy Use fuzzy search [experimental]
20- -F, --filter field[!]=reg Filter given field with regex, can be used multiple times
21- -T, --transpose-columns string Transpose the speficied columns (separated by ,)
22- -R, --regex-transposer /from/to/ Apply /search/replace/ regexp to fields given in -T
23- -I, --interactive Interactively filter and select rows
12+ -c, --columns string Only show the speficied columns (separated by ,)
13+ -v, --invert-match select non-matching rows
14+ -n, --numbering Enable header numbering
15+ -N, --no-color Disable pattern highlighting
16+ -H, --no-headers Disable headers display
17+ -s, --separator < string> Custom field separator
18+ -k, --sort-by < int|name> Sort by column (default: 1)
19+ -z, --fuzzy Use fuzzy search [experimental]
20+ -F, --filter < field[!]=reg> Filter given field with regex, can be used multiple times
21+ -T, --transpose-columns string Transpose the speficied columns (separated by ,)
22+ -R, --regex-transposer < /from/to/> Apply /search/replace/ regexp to fields given in -T
23+ -I, --interactive Interactively filter and select rows
2424
2525 Output Flags (mutually exclusive):
26- -X, --extended Enable extended output
27- -M, --markdown Enable markdown table output
28- -O, --orgtbl Enable org-mode table output
29- -S, --shell Enable shell evaluable output
30- -Y, --yaml Enable yaml output
31- -C, --csv Enable CSV output
32- -A, --ascii Default output mode, ascii tabular
33- -L, --hightlight-lines Use alternating background colors for tables
34- -y, --yank-columns Yank specified columns (separated by ,) to clipboard,
35- space separated
26+ -X, --extended Enable extended output
27+ -M, --markdown Enable markdown table output
28+ -O, --orgtbl Enable org-mode table output
29+ -S, --shell Enable shell evaluable output
30+ -Y, --yaml Enable yaml output
31+ -C, --csv Enable CSV output
32+ -A, --ascii Default output mode, ascii tabular
33+ -L, --hightlight-lines Use alternating background colors for tables
34+ -y, --yank-columns Yank specified columns (separated by ,) to clipboard,
35+ space separated
36+ --ofs <char> Output field separator, used by -A and -C.
3637
3738 Sort Mode Flags (mutually exclusive):
38- -a, --sort-age sort according to age (duration) string
39- -D, --sort-desc Sort in descending order (default: ascending)
40- -i, --sort-numeric sort according to string numerical value
41- -t, --sort-time sort according to time string
39+ -a, --sort-age sort according to age (duration) string
40+ -D, --sort-desc Sort in descending order (default: ascending)
41+ -i, --sort-numeric sort according to string numerical value
42+ -t, --sort-time sort according to time string
4243
4344 Other Flags:
44- -r --read-file <file> Use <file> as input instead of STDIN
45- --completion <shell> Generate the autocompletion script for <shell>
46- -f, --config <file> Configuration file (default: ~/.config/tablizer/config)
47- -d, --debug Enable debugging
48- -h, --help help for tablizer
49- -m, --man Display manual page
50- -V, --version Print program version
45+ -r --read-file <file> Use <file> as input instead of STDIN
46+ --completion <shell> Generate the autocompletion script for <shell>
47+ -f, --config <file> Configuration file (default: ~/.config/tablizer/config)
48+ -d, --debug Enable debugging
49+ -h, --help help for tablizer
50+ -m, --man Display manual page
51+ -V, --version Print program version
5152
5253DESCRIPTION
5354 Many programs generate tabular output. But sometimes you need to
@@ -75,16 +76,16 @@ DESCRIPTION
7576 kubectl get pods | tablizer
7677
7778 # read a file
78- tablizer filename
79+ tablizer -r filename
7980
8081 # search for pattern in a file (works like grep)
81- tablizer regex filename
82+ tablizer regex -r filename
8283
8384 # search for pattern in STDIN
8485 kubectl get pods | tablizer regex
8586
86- The output looks like the original one but every header field will have
87- a numer associated with it, e.g.:
87+ The output looks like the original one. You can add the option -n, then
88+ every header field will have a numer associated with it, e.g.:
8889
8990 NAME(1) READY(2) STATUS(3) RESTARTS(4) AGE(5)
9091
@@ -96,7 +97,13 @@ DESCRIPTION
9697 You can specify the numbers in any order but output will always follow
9798 the original order.
9899
99- The numbering can be suppressed by using the -n option.
100+ However, you may also just use the header names instead of numbers, eg:
101+
102+ kubectl get pods | tablizer -cname,status
103+
104+ You can also use regular expressions with -c, eg:
105+
106+ kubectl get pods | tablizer -c '[ae]'
100107
101108 By default tablizer shows a header containing the names of each column.
102109 This can be disabled using the -H option. Be aware that this only
@@ -445,45 +452,46 @@ Usage:
445452 tablizer [regex,...] [-r file] [flags]
446453
447454Operational Flags:
448- -c, --columns string Only show the speficied columns (separated by ,)
449- -v, --invert-match select non-matching rows
450- -n, --numbering Enable header numbering
451- -N, --no-color Disable pattern highlighting
452- -H, --no-headers Disable headers display
453- -s, --separator string Custom field separator
454- -k, --sort-by int|name Sort by column (default: 1)
455- -z, --fuzzy Use fuzzy search [experimental]
456- -F, --filter field[!]=reg Filter given field with regex, can be used multiple times
457- -T, --transpose-columns string Transpose the speficied columns (separated by ,)
458- -R, --regex-transposer /from/to/ Apply /search/replace/ regexp to fields given in -T
459- -I, --interactive Interactively filter and select rows
455+ -c, --columns string Only show the speficied columns (separated by ,)
456+ -v, --invert-match select non-matching rows
457+ -n, --numbering Enable header numbering
458+ -N, --no-color Disable pattern highlighting
459+ -H, --no-headers Disable headers display
460+ -s, --separator < string> Custom field separator
461+ -k, --sort-by < int|name> Sort by column (default: 1)
462+ -z, --fuzzy Use fuzzy search [experimental]
463+ -F, --filter < field[!]=reg> Filter given field with regex, can be used multiple times
464+ -T, --transpose-columns string Transpose the speficied columns (separated by ,)
465+ -R, --regex-transposer < /from/to/> Apply /search/replace/ regexp to fields given in -T
466+ -I, --interactive Interactively filter and select rows
460467
461468Output Flags (mutually exclusive):
462- -X, --extended Enable extended output
463- -M, --markdown Enable markdown table output
464- -O, --orgtbl Enable org-mode table output
465- -S, --shell Enable shell evaluable output
466- -Y, --yaml Enable yaml output
467- -C, --csv Enable CSV output
468- -A, --ascii Default output mode, ascii tabular
469- -L, --hightlight-lines Use alternating background colors for tables
470- -y, --yank-columns Yank specified columns (separated by ,) to clipboard,
471- space separated
469+ -X, --extended Enable extended output
470+ -M, --markdown Enable markdown table output
471+ -O, --orgtbl Enable org-mode table output
472+ -S, --shell Enable shell evaluable output
473+ -Y, --yaml Enable yaml output
474+ -C, --csv Enable CSV output
475+ -A, --ascii Default output mode, ascii tabular
476+ -L, --hightlight-lines Use alternating background colors for tables
477+ -y, --yank-columns Yank specified columns (separated by ,) to clipboard,
478+ space separated
479+ --ofs <char> Output field separator, used by -A and -C.
472480
473481Sort Mode Flags (mutually exclusive):
474- -a, --sort-age sort according to age (duration) string
475- -D, --sort-desc Sort in descending order (default: ascending)
476- -i, --sort-numeric sort according to string numerical value
477- -t, --sort-time sort according to time string
482+ -a, --sort-age sort according to age (duration) string
483+ -D, --sort-desc Sort in descending order (default: ascending)
484+ -i, --sort-numeric sort according to string numerical value
485+ -t, --sort-time sort according to time string
478486
479487Other Flags:
480- -r --read-file <file> Use <file> as input instead of STDIN
481- --completion <shell> Generate the autocompletion script for <shell>
482- -f, --config <file> Configuration file (default: ~/.config/tablizer/config)
483- -d, --debug Enable debugging
484- -h, --help help for tablizer
485- -m, --man Display manual page
486- -V, --version Print program version
488+ -r --read-file <file> Use <file> as input instead of STDIN
489+ --completion <shell> Generate the autocompletion script for <shell>
490+ -f, --config <file> Configuration file (default: ~/.config/tablizer/config)
491+ -d, --debug Enable debugging
492+ -h, --help help for tablizer
493+ -m, --man Display manual page
494+ -V, --version Print program version
487495
488496
489497`
0 commit comments