Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/joshaustintech/rwc
wc clone written in Rust
https://github.com/joshaustintech/rwc
Last synced: 3 days ago
JSON representation
wc clone written in Rust
- Host: GitHub
- URL: https://github.com/joshaustintech/rwc
- Owner: joshaustintech
- License: mit
- Created: 2024-06-28T14:57:18.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-06-29T02:53:31.000Z (6 months ago)
- Last Synced: 2024-11-09T08:20:37.633Z (about 2 months ago)
- Language: Rust
- Size: 132 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# rwc [![Rust](https://github.com/joshaustintech/rwc/actions/workflows/rust.yml/badge.svg)](https://github.com/joshaustintech/rwc/actions/workflows/rust.yml)
wc clone written in Rust# usages
```
$ rwc [arguments...] [file]
$ cat [file] | rwc
```# reading from stdin
If no file is provided as the final argument, `rwc` will read from `stdin`.Example:
```
$ cat test.txt | rwc -l
7145
```## no arguments
If no arguments are provided, or only the file is provided, then `rwc` will
default to the equivalent arguments of `-c -l -w`.Example:
```
$ rwc test.txt
7145 58164 342190 test.txt
```## table of arguments
| argument | description |
| -------- | ----------- |
| -c | prints number of bytes |
| -l | prints number of newlines, not including the end of the last line |
| -w | prints number of words |
| -m | prints number of characters |# todo
- [ ] support for multiple files
- [ ] multithreading