Skip to content

x3C49/gnat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gnat

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! : )

Current Features

  • 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.

Planned

  • Allow for concatenation of files.
  • Add help menu.
  • Add Options (Numbered output, Limit output amount, Suppress empty output lines).
  • Optimize.

Installation & Usage

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.nim

Run the executable with the file you want to read:

  ./gnat example.txt
  ./gnat ~/path/to/MY_FAVORITE_FILE.txt

License - GPL v3

About

cat clone created for learning purposes

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages