{"id":19684257,"url":"https://github.com/elliotwutingfeng/ccwc","last_synced_at":"2025-02-27T07:23:13.587Z","repository":{"id":199672705,"uuid":"703451946","full_name":"elliotwutingfeng/ccwc","owner":"elliotwutingfeng","description":"ccwc is a simplified clone of wc written in Go","archived":false,"fork":false,"pushed_at":"2024-11-30T21:02:59.000Z","size":146,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-01-10T06:49:14.473Z","etag":null,"topics":["unix"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/elliotwutingfeng.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-10-11T09:15:34.000Z","updated_at":"2024-01-12T05:22:55.000Z","dependencies_parsed_at":"2023-12-28T03:04:33.591Z","dependency_job_id":"6abe56fe-f661-4d20-b456-b0828b55cf0f","html_url":"https://github.com/elliotwutingfeng/ccwc","commit_stats":null,"previous_names":["elliotwutingfeng/ccwc"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elliotwutingfeng%2Fccwc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elliotwutingfeng%2Fccwc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elliotwutingfeng%2Fccwc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elliotwutingfeng%2Fccwc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/elliotwutingfeng","download_url":"https://codeload.github.com/elliotwutingfeng/ccwc/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240993393,"owners_count":19890418,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["unix"],"created_at":"2024-11-11T18:17:19.647Z","updated_at":"2025-02-27T07:23:13.570Z","avatar_url":"https://github.com/elliotwutingfeng.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ccwc\n\n[![Go Reference](https://img.shields.io/badge/go-reference-blue?logo=go\u0026logoColor=white\u0026style=for-the-badge)](https://pkg.go.dev/github.com/elliotwutingfeng/ccwc)\n[![Go Report Card](https://goreportcard.com/badge/github.com/elliotwutingfeng/ccwc?style=for-the-badge)](https://goreportcard.com/report/github.com/elliotwutingfeng/ccwc)\n[![Coveralls](https://img.shields.io/coverallsCoverage/github/elliotwutingfeng/ccwc?logo=coveralls\u0026style=for-the-badge)](https://coveralls.io/github/elliotwutingfeng/ccwc?branch=main)\u003cimg src='https://coveralls.io/repos/github/elliotwutingfeng/ccwc/badge.svg?branch=main' alt='' width=\"0\" height=\"0\" /\u003e\n\n[![GitHub license](https://img.shields.io/badge/LICENSE-BSD--3--CLAUSE-GREEN?style=for-the-badge)](LICENSE)\n\n## Summary\n\n**ccwc** is a simplified clone of [wc](https://en.wikipedia.org/wiki/Wc_(Unix)) written in Go.\n\n## Usage\n\nFirst, build the CLI application.\n\n```sh\n# `git clone` and `cd` to the ccwc repository folder first\nmake build_cli\n```\n\nThen use the `c`, `l`, `w` and/or `m` flags to count number of bytes, lines, words, and characters in **test.txt**.\n\n```sh\n./dist/ccwc -c test.txt # Count bytes\n```\n\n```sh\n./dist/ccwc -l test.txt # Count lines\n```\n\n```sh\n./dist/ccwc -w test.txt # Count words\n```\n\n```sh\n./dist/ccwc -m test.txt # Count characters\n```\n\nPiping in from standard input is also supported.\n\n```sh\ncat test.txt | ./dist/ccwc -l\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felliotwutingfeng%2Fccwc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Felliotwutingfeng%2Fccwc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felliotwutingfeng%2Fccwc/lists"}