A utility program to apply transformations on text.
Clone the project and run cd c/ && make
to get the tb
binary.
To run the C version you can use the built binary.
To run the Haskell version you can use stack Main.hs
.
Use the -h
flag to see the usage and options.
Example output (possibly outdated):
Usage: ./tb [-u | -l | -r | -R | -a POSTFIX | -p PREFIX | -m COUNT]...
Available options:
-u Uppercase the input
-l Lowercase the input
-r Reverse the input
-R Randomcase the input
-a Append POSTFIX at the end of the input
-p Prepend PREFIX at the start of the input
-m Repeat the input COUNT times (negative COUNT means 0)
-h Show this help text
$ echo hello | ./tb -u
HELLO
$ echo hello | ./tb -u -r
OLLEH
$ echo hello | ./tb -u -r -a ' world'
OLLEH world
I made this program for me to get familiar with Vim (and get back into C).