-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathUSAGE.txt
More file actions
49 lines (40 loc) · 2.1 KB
/
Copy pathUSAGE.txt
File metadata and controls
49 lines (40 loc) · 2.1 KB
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
Usage: csvdiff [OPTIONS] FILEA FILEB
processes 2 csv files and outputs the differences
Options:
-h, --help display this help and exit
-v, --version display version/license and exit
-l, --listHeader print the file header and exit
--exitCodes print a list of all exit codes
--config [file] config file with list of arguments
file is searched in current directory
then in $HOME/.config/csvdiff
pauses argument processing an applies config
then continues to apply command line arguments
-c, --color output in read/green
--asCsv output in csv format
-a, --outputAll output allso matching lines
-f, --fieldDiff output differences per field
--stats output statistics at the end
-t, --time output the time needed
input:
-s, --separator sep use sep as input field separator
sep can be one of:
tab (\t)
comma (,) {Default}
semicolon (;)
pipe (|)
-q, --quote no no quouting {default for performance}
-q, --quote single use single quouttes (')
-q, --quote double use double quoutes (")
--header [h1,h2,...] use given heder (field1,field2,...)
-n, --noHeader file has no header
processing:
-k, --key [k1,k2,...] fileds to use as primary key
comma separated list of field names/indices
use backshlash to escape numeric field names
can be used multiple times
numeric ranges can be used e.g. 3-6
-e, --exclude [f1,f2,...] fields to exclude from diff check
comma separated list of field names/indices
same rules as --key
--trim removes space & tab characters from start & end