ropipe/README.md

64 lines
1.2 KiB
Markdown
Raw Normal View History

2021-10-06 17:50:47 +02:00
# Ropipe
2021-10-18 09:00:27 +02:00
![GitHub](https://img.shields.io/github/license/MatMasIt/ropipe)
2021-10-06 17:50:47 +02:00
> 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
2021-10-06 17:52:09 +02:00
1. Clone this repository
2. `cd` into it
3. run
```sh
2021-10-11 11:24:13 +02:00
sudo make install
2021-10-06 17:52:09 +02:00
```
or
```sh
2021-10-11 11:24:13 +02:00
doas make install
2021-10-06 17:52:09 +02:00
```
2021-10-11 11:24:13 +02:00
2021-10-06 17:52:09 +02:00
(The program is compiled at this time, you may check the script and the program out beforehand)
2021-10-06 17:50:47 +02:00
## Examples
Once installed, you can find sample files in the project dir.
2021-10-06 17:54:41 +02:00
---
Example 1:
2021-10-06 17:50:47 +02:00
```sh
ropipe < arabic.txt
```
2021-10-06 17:54:41 +02:00
Result:
```
I
X
CXXIII
CCCXXI
```
---
Example 2:
2021-10-06 17:50:47 +02:00
```sh
ropipe -r < roman.txt
```
2021-10-06 17:54:41 +02:00
Result:
```
4
5
7
1200
```
2021-10-06 17:50:47 +02:00
## Manpage
A manpage is installed alongside the program, try running `man ropipe`
## Updates
2021-10-06 17:52:09 +02:00
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
2021-10-11 11:24:13 +02:00
## Make commands
* `make`: compile ropipe
* `make install`: install ropipe
* `make uninstall`: uninstall ropipe