https://github.com/caius/rscat
cat(1) implemented in rust
https://github.com/caius/rscat
cat unix-command
Last synced: 3 months ago
JSON representation
cat(1) implemented in rust
- Host: GitHub
- URL: https://github.com/caius/rscat
- Owner: caius
- License: mit
- Created: 2016-06-20T21:40:26.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2016-09-05T23:04:40.000Z (almost 9 years ago)
- Last Synced: 2025-03-21T02:12:36.681Z (3 months ago)
- Topics: cat, unix-command
- Language: Rust
- Size: 4.88 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# rscat
`cat(1)` implemented in rust as a learning exercise.
Passes [cat_linter][]:
```
$ cargo build --release
$ cat_linter target/release/rscat
Linting cat against ../rscat/target/release/rscatChecking `cat /tmp/cat_linter_file1`:
Output matches
Exit matchesChecking `cat /tmp/cat_linter_file1 /tmp/cat_linter_file2`
Output matches
Exit matchesChecking `cat /tmp/cat_linter_file1 non-existent-file `
Output matches
Exit matchesChecking `echo "hi\nnow" | cat`
Output matches
Exit matchesChecking `echo "how\nnow\nbrown\ncow" | cat /tmp/cat_linter_file1 - /tmp/cat_linter_file2`
Output matches
Exit matchesChecking `echo "how\nnow\nbrown\ncow" | cat /tmp/cat_linter_file1 - /tmp/non-existent-file - /tmp/cat_linter_file2`
Output matches
Exit matches
```[cat_linter]: https://github.com/caius/cat_linter
## License
`cargo run -q LICENSE`