A simple cat command clone written in Jai.
jcat is a lightweight implementation of the Unix cat command, built as a learning project in the Jai programming language. It covers alot of the basics of cat, but not all the edge cases. It should run on both mac/linux.
- Display file contents to stdout
- Concatenate multiple files
- Basic error handling
jcat [file1] [file2] ...# Display a single file
jcat example.txt
# Concatenate multiple files
jcat file1.txt file2.txt
# Display from stdin (if no arguments)
jcatjai-macos main.jaior
jai-linux main.jaior use make if you have make installed you can use it. Assumes you have jai-macos or jai-linux in your path
make buildMIT