Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/visheshrwl/ccwc
https://github.com/visheshrwl/ccwc
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/visheshrwl/ccwc
- Owner: visheshrwl
- Created: 2024-07-06T09:32:52.000Z (7 months ago)
- Default Branch: master
- Last Pushed: 2024-11-10T11:18:26.000Z (3 months ago)
- Last Synced: 2024-11-10T12:19:43.100Z (3 months ago)
- Language: Rust
- Size: 134 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
# CCWC
`ccwc` - print newline, word, and byte counts for each file.
# Synopsis
```sh
ccwc [OPTION]... [FILE]...
```# Description
Print newline, word and byte counts for each file and a total line if mroe than one file is specifies, with no file, or when file is -, read standard input.# Options
```sh
-c print the byte counts
-m print the character counts
-l print the newline counts
-w print the word counts
--help display this help and exit
```# Usage
TTo use `ccwc`, specify an option and a filename. If no filename is provided, it reads from the standard input.#Examples
1. Count bytes in a file:
```sh
ccwc -c filename
```2. Count characters in a file:
```sh
ccwc -m filename
```3. Count lines in a file
```sh
ccwc -l filename
```4. count words in a file:
```sh
ccwc -w filename
```5. Count lines, words and bytes from the standard input:
```sh
echo "Sample text" | ccwc
```## Contributing
We welcome contributioons to enhance this project. Please follow these steps:
**1.** Fork the repository.
**2.** Clone your forked copy of the project.
```sh
git clone https://github.com//ccwc.git
```
**3.** Navigate to the project directory.
```sh
cd ccwc
```
**4.** Add a reference(remote) to the original repository.
```shgit remote add upstream https://github.com/visheshrwl/ccwc
```
**5.** Check the remotes for this repository.
```shgit remote -v
```
**6.** Always take a pull from the upstream repository to your master branch to keep it at par with the main project(updated repository).
```shgit pull upstream main
```
**7.** Create a new branch.
```shgit checkout -n
```
**8.** Perform your desired changes to the code base on that branch.
**9.** Track your changes.
```shgit add .
```
**10.** Commit your changes.
```shgit commit -m "Relevant message"
```
**11.** Push the committed changes in your feature branch to your remote repo.
```shgit push -u origin
```
**12.** To create a pull request, click on `compare and pull requests. Please ensure you compare your feature branch to the desired branch of the repository you are supposed to make a PR to.
**13.** Add an appropriate title and description to your pull request explaining your changes and efforts.
**14.** Click on `Create Pull Request.`
**15.** Voila! You have made a PR to Bug Buster's Community Website. Sit back patiently and relax while your PR is reviewed.
Project Maintainers & Admins
Project Contributors