cat-cr
cat-cr
cat-cr is a crystal reimplementation of the standard unix cat utility. it's still a work in progress, but it functions in exactly the way any average user would probably expect (just spitting out the text of a file)
Installation
installation requires the crystal compiler
git clone https://github.com/elliethepuppy/cat-cr.git && cd cat-cr
sh build.sh && sh install.sh
optionally build manually:
mkdir build && crystal build src/cat-cr.cr -o build/[whatever you'd like to call it] --release --no-debug --warnings all --error-on-warnings
then install manually:
cp build/[name you chose] ~/.local/bin
if you chose to name it cat, you'll need to rename the system package to avoid clashing:
sudo mv /usr/bin/cat /usr/bin/gcat
you don't have to use gcat. that's just what i do to denote "gnu cat" as opposed to my own when they are both in the $PATH
Usage
example: cat -E src/cat-cr.cr
Development
i need help with finding all the special characters that cat proper outputs with its -v flag, so if you could find those that would be cool.
Contributing
- Fork it (https://github.com/elliethepuppy/cat-cr/fork)
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create a new Pull Request
Contributors
- ellie :3 - creator and maintainer
cat-cr
- 0
- 0
- 0
- 0
- 0
- about 5 hours ago
- January 11, 2026
MIT License
Sun, 11 Jan 2026 18:24:20 GMT