gnat (pronounced "NAT") is a cat remake written in Nim.
This was created to learn more about file I/O, Nim, and string processing.
If you have any suggestions on improvement, PRs and PM/Email are strongly welcome! : )
- Read contents of file and display in standard output.
- Return stdin if no input file was passed
- Handling CTRL+C
- Handling any IO-Error or OS-Error
- Parse command line paramaters.
- Allow for concatenation of files.
- Add help menu.
- Add Options (Numbered output, Limit output amount, Suppress empty output lines).
- Optimize.
Ensure you have git and nim installed.
Clone this repository to your local machine.
(c)ompile and (-r)un the source file:
nim c -r gnat.nimRun the executable with the file you want to read:
./gnat example.txt
./gnat ~/path/to/MY_FAVORITE_FILE.txt