Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/kaz-utashiro/optex-rpn

Reverse Polish Notation calculation module for App::optex
https://github.com/kaz-utashiro/optex-rpn

Last synced: 8 days ago
JSON representation

Reverse Polish Notation calculation module for App::optex

Awesome Lists containing this project

README

        

# NAME

rpn - Reverse Polish Notation calculation

# SYNOPSIS

optex -Mrpn command ...

# VERSION

Version 1.01

# DESCRIPTION

**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](https://metacpan.org/pod/Math%3A%3ARPN) 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.

# EXAMPLE

Prevent macOS to suspend for 5 hours.

$ optex -Mrpn caffeinate -d -t 3600,5*

# INSTALL

## CPANMINUS

cpanm App::optex::rpn

# SEE ALSO

[App::optex](https://metacpan.org/pod/App%3A%3Aoptex), [https://github.com/kaz-utashiro/optex](https://github.com/kaz-utashiro/optex)

[App::optex::rpn](https://metacpan.org/pod/App%3A%3Aoptex%3A%3Arpn), [https://github.com/kaz-utashiro/optex-rpn](https://github.com/kaz-utashiro/optex-rpn)

[https://qiita.com/kaz-utashiro/items/2df8c7fbd2fcb880cee6](https://qiita.com/kaz-utashiro/items/2df8c7fbd2fcb880cee6)

[Math::RPN](https://metacpan.org/pod/Math%3A%3ARPN)

# AUTHOR

Kazumasa Utashiro

# LICENSE

Copyright 2021 Kazumasa Utashiro.

This library is free software; you can redistribute it and/or modify
it under the same terms as Perl itself.