Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/novara754/rat-rs
A reimplementation of cat in Rust.
https://github.com/novara754/rat-rs
Last synced: 30 days ago
JSON representation
A reimplementation of cat in Rust.
- Host: GitHub
- URL: https://github.com/novara754/rat-rs
- Owner: novara754
- License: mit
- Created: 2019-08-07T15:42:16.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-08-16T17:21:07.000Z (over 5 years ago)
- Last Synced: 2024-10-14T22:14:27.558Z (2 months ago)
- Language: Rust
- Size: 9.77 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
[![CircleCI](https://circleci.com/gh/vzwGrey/rat-rs/tree/master.svg?style=svg)](https://circleci.com/gh/vzwGrey/rat-rs/tree/master)
# rat
A reimplementation of `cat` in Rust.
Program to print (multiple) files as well as standard in to standard out, allowing users to concatenate files from the command line. Has many options to alter the output in different ways, e.g., line numbers, skipping blocks of whitespace.
## Motivation
Just for fun, it's a simple program to implement as a learning project.
## Features
It can do (almost) anything the Unix/Linux version of `cat` can do.
Currently lacking support for the `-v`/`--show-nonprinting` option.## Installation
**Requirements:** As it is written in rust and there are no pre-built binaries
`rustc` as well as `cargo` have to be installed on your system.1. Run `cargo build --release` in this directory
2. Find the executable binary at `target/release/rat(.exe)`
3. Copy the executable somewhere you want to keep it and add it to the PATH variable## Usage
The options are the same as the Unix/Linux version of `cat`.
`rat -h` will display help information.Example:
```
$ rat -ns ./poem.txt
```## License
Licensed under the [MIT License](LICENSE.md)