Releases: ryuichiueda/opy
Releases · ryuichiueda/opy
v2.0.0
Enable to parse hex, oct, and binary numbers.
$ echo 0xa0 0b11 -0o11 | ./opy '[*F[1:]]'
160 3 -9
v1.9.3
Fix a bug that causes the following unintended output.
echo hoge | opy '[F0]'
hoge
# a blank line
v1.9.1
points of update
- added a dictionary and a list for general purpose use.
$ seq 10 | opy '{D[NR%2]+=F1};E:["odd sum:", D[1], "\neven sum:", D[0] ]'
odd sum: 25
even sum: 30
seq 10 | ./opy 'NR%2:{L.append(F1)};E:[L]'
[1, 3, 5, 7, 9]
v1.8.0
points of update
- changed specification of
join
function
### join F[2], and F[4] with @ ###
$ echo {a..e} | ./opy -o @ '[join(F,[2,4])]'
b@d
### join F[2], F[3], and F[4] with @ ###
$ echo {a..e} | ./opy -o @ '[join(F[2:5])]'
b@c@d
v.1.7.0
points of update
- implemented
join
anddropjoin
function.
### join F[2], F[3], and F[4] with @ ###
$ echo {a..e} | ./opy -o @ '[join(F,2,4)]'
b@c@d
### drop the second field ###
$ echo {a..e} | ./opy '[dropjoin(F,2)]'
a c d e
### drop the second and third field ###
$ echo {a..e} | ./opy '[dropjoin(F,[2,3])]'
a d e
### F0 is also accepted. ###
$ echo {a..e} | ./opy '[dropjoin(F0,[2,3])]'
a d e
- added comments
v.1.5.0
Fix a problem of variables defined before a closure.
- example:
### v.1.5.0 ###
echo 2 | opy '{a=F1;print(" ".join([ str(x)*a for x in range(3) ])) }'
00 11 22
### before v.1.4.4 ###
echo 2 | opy '{a=F1;print(" ".join([ str(x)*a for x in range(3) ])) }'
...
NameError: name 'a' is not defined
v.1.4.4
First release for homebrew