1.1 KiB
1.1 KiB
Ropipe
Convert roman numbers to integers and vice-versa in pipes
What is ropipe?
Ropipe converts decimal integers to roman numbers and vice versa, reading from stdin and printing to stdout, it is meant to primarily be used in pipes. Default is integer to roman.
Options
- -r : Roman to integer. Integer to roman is the default.
Installation
- Clone this repository
cd
into it- run
sudo make install
or
doas make install
(The program is compiled at this time, you may check the script and the program out beforehand)
Examples
Once installed, you can find sample files in the project dir.
Example 1:
ropipe < arabic.txt
Result:
I
X
CXXIII
CCCXXI
Example 2:
ropipe -r < roman.txt
Result:
4
5
7
1200
Manpage
A manpage is installed alongside the program, try running man ropipe
Updates
There is no automatic update system as of yet, you are advised to regularly visit https://github.com/MatMasIt/ropipe, download and re-run the installer in order to get updates
Make commands
make
: compile ropipemake install
: install ropipemake uninstall
: uninstall ropipe