-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
74 lines (45 loc) · 2.21 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
barg(1) barg(1)
NAME
barg - create simple ASCII bar graphs from CSV data
SYNOPSIS
barg [OPTIONS]
DESCRIPTION
barg processes data in CSV format an outputs simple bar graphs as
ASCII graphics. The option -b COLUMNO specifies which column number
contains the (numerical) data used to draw the bars. barg will
determine the maximum value of this column and will scale all bars
relatively to this maximum. It is also possible to print a text
next to each bar with the -l COLUMNO option. In this case COLUMNO
can be the number of a column, either containing some arbitrary
string (like a label for this bar) or the same column used for the
-b option to print the numeric value. The -b COLUMNO and -l COLUMNO
options can be used multiple times and the output of these
labels/bars will be in the order as the options were specified.
OPTIONS
-a autodetect columns for labels and bars (each column will be
used either as label-bar-combination if it's numerical or as
label otherwise) -a cannot be used in combination with -b or
-l
-b COLUMNO
use data from column number COLUMNO (starting at 0) to draw
a bar
-l COLUMNO
use string from column number COLUMNO (starting at 0) to
print a label
-c BARCHAR
use BARCHAR instead of "|" to draw the bars. BARCHAR be a
single character.
-d DELIMITER
use DELIMITER instead of Tab as field delimiter when reading
data
-f INPUTFILE
read data from INPUTFILE instead of STDIN
-w WIDTH
Don't use automatically determined terminal width to scale
the graphs but limit the output width to WIDTH characters.
EXAMPLES
You can find examples on how to use barg in the wiki:
https://github.com/stefanschramm/barg/wiki
AUTHOR
Stefan Schramm <mail@stefanschramm.net>
APRIL 2011 barg(1)