Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cesousan/ccwc
https://github.com/cesousan/ccwc
Last synced: 19 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/cesousan/ccwc
- Owner: cesousan
- Created: 2024-01-14T20:58:04.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-01-14T21:09:55.000Z (about 1 year ago)
- Last Synced: 2024-01-15T01:15:08.988Z (about 1 year ago)
- Language: Rust
- Size: 128 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# CCWC
## From [John Cricket's coding challenge #1](https://codingchallenges.fyi/challenges/challenge-wc/): build a wc clone CLI tool
### written with <3 using Rust 🦀
This is a simple CLI tool that mimics the functionality of the `wc` command in Unix systems. It was written as a coding challenge for fun.
This is my first Rust project, so I'm sure there are many ways to improve the code. I'm open to suggestions!
### Usage
```
ccwc [OPTIONS] [PATH]Arguments:
[PATH] The path to the file to readOptions:
-c, --bytes Number of bytes in file
-l, --lines Number of lines in file
-w, --words Number of words in file
-m, --chars Number of chars in file
-h, --help Print help
```#### Alternate Usage:
```
| ccwc [OPTIONS]example: cat file.txt | ccwc -l
```### Installation
#### From source
```
cargo build --releasesudo mv target/release/ccwc /usr/local/bin
# alternatively, create a symbolic link
ln -s $(pwd)/target/release/ccwc /usr/local/bin/ccwc
```