Convert roman numbers to integers and vice-versa in pipes
Go to file
2021-10-06 18:00:26 +02:00
arabic.txt Add files via upload 2021-10-06 17:50:47 +02:00
install.sh Add files via upload 2021-10-06 17:50:47 +02:00
README.md Added example results 2021-10-06 17:54:41 +02:00
roman.txt Add files via upload 2021-10-06 17:50:47 +02:00
ropipe.1 at -> to man page 2021-10-06 18:00:26 +02:00
ropipe.c Add files via upload 2021-10-06 17:50:47 +02:00

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

  1. Clone this repository
  2. cd into it
  3. run
sudo bash install.sh

or

doas bash install.sh

(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