https://github.com/edkolev/wc-rust-cli
A cli in Rust which mimics "wc"'s output.
https://github.com/edkolev/wc-rust-cli
Last synced: about 2 months ago
JSON representation
A cli in Rust which mimics "wc"'s output.
- Host: GitHub
- URL: https://github.com/edkolev/wc-rust-cli
- Owner: edkolev
- Created: 2025-03-04T08:47:42.000Z (about 2 months ago)
- Default Branch: main
- Last Pushed: 2025-03-04T08:49:46.000Z (about 2 months ago)
- Last Synced: 2025-03-04T09:35:02.150Z (about 2 months ago)
- Language: Rust
- Size: 0 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# wc-rust-cli
A cli in Rust which mimics "wc"'s output.
This is a toy project with the goal of familiarization with Rust's basics.
It follows an old tradition: [wc-haskell-cli](https://github.com/edkolev/wc)
## Sample output compare to "wc"
Words:
```
~/Projects/wc-cli $ cargo run -q -- Cargo.*
26 Cargo.lock
11 Cargo.toml
37 total
~/Projects/wc-cli $ wc -w Cargo.*
26 Cargo.lock
11 Cargo.toml
37 total
```Lines:
```
~/Projects/wc-rust-cli $ cargo run -q -- -l Cargo.*
7 Cargo.lock
6 Cargo.toml
13 total
~/Projects/wc-rust-cli $ wc -l Cargo.*
7 Cargo.lock
6 Cargo.toml
13 total
```