https://github.com/santisite/ccwc
Version in Go of the Unix command line tool wc.
https://github.com/santisite/ccwc
cli golang unix wc
Last synced: about 1 month ago
JSON representation
Version in Go of the Unix command line tool wc.
- Host: GitHub
- URL: https://github.com/santisite/ccwc
- Owner: SantiSite
- Created: 2024-01-14T18:10:15.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-01-14T18:31:55.000Z (over 2 years ago)
- Last Synced: 2025-04-26T08:04:48.816Z (about 1 year ago)
- Topics: cli, golang, unix, wc
- Language: Go
- Homepage:
- Size: 1000 Bytes
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# CCWC
Version in Go of the Unix command line tool **wc**.
It was carried out in order to overcome the [Coding Challenges](https://codingchallenges.fyi/) challenge.
## Install
You must have Go installed and configured on your machine.
### Step 0
```shell
git clone git@github.com:SantiSite/ccwc.git
```
### Step 1
```shell
cd ccwc
```
### Step 2
```shell
go install
```
## Usage
How to use:
```shell
ccwc --help
```
Print the word counts:
```
$ ccwc -w
```
### Examples:
```
$ ccwc main.go
output:
newlines words bytes chars
135 382 2549 2549 main.go
```
```
$ cat main.go | ccwc
output:
newlines words bytes chars
135 382 2549 2549 main.go
```