-
Notifications
You must be signed in to change notification settings - Fork 6
/
opy.1
81 lines (76 loc) · 1 KB
/
opy.1
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
75
76
77
78
79
80
81
.TH "OPY" 1 "2019-11-9" "Man Page" "Utility Commands"
.SH NAME
opy \- onelinerers' Python
.SH SYNOPSIS
.B opy
[
.BI \-bcCs
]
[
.BI \-i
.I separators
|
.BI \-I
.I separators
]
[
.BI \-m
.I modules
]
[
.BI \-o
.I separators
]
[
.BI \-v
.I <variable>=<string>
]
.I 'prog'
[
.I file ...
]
.SH DESCRIPTION
.PP
.I Opy
reads each line of each
.I file
and reacts based on the rules written in the
.I prog.
.SH OPTIONS
.TP
.B \-b
buffer the standard output
.TP
.B \-c
read data as UTF-8 CSVs
.TP
.B \-C
output data as UTF-8 CSVs
.TP
.B \-s
treat numbers from input data as strings
.TP
.B \-i
.I separators
change input field separators
.TP
.B \-I
.I separators
change input field separators with a regular expression
.TP
.B \-m
.I modules
import modules
.TP
.B \-o
.I separators
change output field separators
.TP
.B \-v
.I <variable>=<string>
define a variable from a string on the shell
.TP
.B \-t <json|yaml|xml|csv|xlsx>
tree mode. Opy reads a tree from a file and it is stored to an object T.
.SH SEE ALSO
.BR python3 (1)