rpn - Reverse Polish Notation calculation
optex -Mrpn command ...
Version 1.01
rpn is a filter module for optex command to detect arguments which look like Reverse Polish Notation (RPN), and replace them by the result of calculation.
See Math::RPN for Reverse Polish Notation detail.
Since RPN part requires two terms at least,
optex -Mrpn echo RAND
print just "RAND". Use something like RAND,0+
to get random
number.
Prevent macOS to suspend for 5 hours.
$ optex -Mrpn caffeinate -d -t 3600,5*
cpanm App::optex::rpn
App::optex, https://github.com/kaz-utashiro/optex
App::optex::rpn, https://github.com/kaz-utashiro/optex-rpn
https://qiita.com/kaz-utashiro/items/2df8c7fbd2fcb880cee6
Kazumasa Utashiro
Copyright 2021 Kazumasa Utashiro.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.