j
jaipkg.dev
packages / library / jcat

jcat

v0.1.1library

A simple cat command clone written in Jai.

No license · updated 7 months ago

jcat

A simple cat command clone written in Jai.

Description

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.

Features

  • Display file contents to stdout
  • Concatenate multiple files
  • Basic error handling

Usage

jcat [file1] [file2] ...

Examples

# Display a single file
jcat example.txt

# Concatenate multiple files
jcat file1.txt file2.txt

# Display from stdin (if no arguments)
jcat

Building

jai-macos main.jai

or

jai-linux main.jai

or use make if you have make installed you can use it. Assumes you have jai-macos or jai-linux in your path

make build

License

MIT