zcat
is a minimalist reimplementation of the Unix cat
utility, written in Zig. This project is created for learning purposes and offers a streamlined set of features compared to the original cat
command.
- Concatenate Files: Read files sequentially and output their content to the standard output.
- Read from Standard Input: If no files are specified,
zcat
reads from standard input.
To build zcat
, you need to have Zig installed. Follow these steps to install and build the project:
-
Clone the repository:
git clone https://github.com/ademyanchuk/zcat.git cd zcat
-
Build the project:
zig build
-
The compiled executable will be available in
zig-out/bin/
.
Run zcat
with one or more filenames as arguments to concatenate their contents:
./zcat file1.txt file2.txt
If no files are specified, zcat
reads from standard input:
./zcat
This project is licensed under the MIT License.
Feel free to contribute, open issues, and provide feedback to help improve zcat
. Enjoy using this learning tool!