A text to Morse code converter, and vice versa. A simple Morse code application.
gcmorse [OPTIONS]
Supported command line options:
-a
/--append
- Append to file instead of overwriting-d
/--decrypt
- Convert from Morse code to regular text-h
/--help
- Display help message-i
/--input
- Specify input file in next argument-o
/--output
- Specify input file in next argument-p
/--prosginsdisabled
- Disable automatic prosign insertion (like.-.-
instead of new line)-u
/--uppercase
- Output uppercase text, when decrypting-v
/--version
- Display software version number
For example, gcmorse -i example.txt -o example.morse
will encode example.txt
and store Morse code in example.morse
.
To reverse process use gcmorse -d -i example.morse -o decrypted.txt
.
When input file is not specified, gcmorse
will read stdin
until EOF
or EOT
character occurs.
Same applies to output files - when not specified, gcmorse
will write to stdout
.
- Clone git repository -
git clone https://github.com/BrunoRamalhete/gcmorse.git && cd gcmorse
- Invoke makefile -
make all
- To install use
sudo make install
, and to uninstall -sudo make uninstall
.
- Clone git repository -
git clone https://github.com/BrunoRamalhete/gcmorse.git && cd gcmorse
- Build docker image -
docker build -t gcmorse .
- Run
gcmorse
binary using docker container based on the gcmorse image -docker run -it gcmorse gcmorse