A Java implementation of Unix cat. No meows, please. It's a toy program to improve my familiarity with the Java ecosystem.
NOTE
You'll need to have installed Java SE 17,make
and Apachemaven
.
- Clone the repo:
git clone https://github.com/gyreas/purrcat.git
- Enter the dir:
cd purrcat
- Build with:
make build
- Run the tests with:
make tests
(note the 's' in 'tests') - Test with:
./app.sh <options & files here>
- To build a standalone JAR, do:
make clean package
- implement tiny testing library / find a tiny library jar
- add the main branch after test suites is up
- implement file i/o etc
- implement feature's of Unix cat, so that this cat can purr.
- Majestic error/exception handling
- Detect if output file is among input files to avoid blowing the file size.
- reading from stdin and sockets
- stdin
- sockets
- bundle as jar, to infinity
- upgrade to maven
- no more than 4x slower than Unix cat--this purrcat can run too.