Just a simple program that will pad text on the left to align it on the right. That's it. Just in case anyone needs it for anything...
- g++ with C++11 support
- Make
$ make
$ ./leftpad
Usage: ./leftpad <margin> [input_file]
<margin> is required. [input_file] is optional. If [input_file] unspecfied, default is standard input.
$ cat input.txt
But I must explain to you how all
this mistaken idea of denouncing of a
pleasure and praising pain
$ ./leftpad 50 < input.txt
But I must explain to you how all
this mistaken idea of denouncing of a
pleasure and praising pain
See LICENSE file.