Simple clone of the GNU coreutils program cat(1). Give it a list of files and it will print their contents to stdout.
Building from source requires a C compiler and CMake 3.5 or greater. In the top-level source directory, run the following:
mkdir build && cd build
cmake ..
make
Alternatively:
cmake -B build
cmake --build build
The resulting binary will be found at build/cat2
.
Usage: cat2 file1 file2 ...
Prints the contents of one or more files to stdout.
-h, --help print a brief help message
-v, --version output the program version number and license information
- print from stdin if no files specified
- integration and/or unit tests
- formatting options (line numbers, compressed whitespace, etc.)
Copyright 2018-2019,2023 Cody Logan.
This program is released under the terms of the Apache License, version 2.0. You may modify it or redistribute it freely according to the conditions of the license.