Filter unprintable characters from input stream.
Short and simple. Follow the original Unix philosophy of a program doing just one thing where both input and output are streamed and are therefore able to function well in a pipe sequence.
File locations adjustable in makefile.
- Binary executable (
fescape
) located in/usr/local/bin
- Manpage (
fescape.1
) located in/usr/local/share/man/man1
- API documentation located in project folder as
fescape-apidoc.pdf
andfescape-apidoc.html
. Doc source files indocs
folder.
- file : file(s) to display or stdin if none specified
-r, --repeats
: display a count for repeated characters instead of displaying the characters themselves-h, --help
: display usage-n, --newline
: filter newlines-o, --octal
: display octal codes instead of default hex codes
main()
- Handle switches
- Handle arguments
- Handle actions
void usage(const char *program)
- Display help to user
fescape(FILE *input_stream, FILE *output_stream, bool repeats, bool octal)
- Performs the filter function.
- system-actions.{c,h}
- actions.{c,h}
Haven't discovered any issues yet.