https://github.com/leonardpepa/wc-tool
wc tool written in go
https://github.com/leonardpepa/wc-tool
coding-challenges go golang linux-tool wc-tool
Last synced: about 2 months ago
JSON representation
wc tool written in go
- Host: GitHub
- URL: https://github.com/leonardpepa/wc-tool
- Owner: Leonardpepa
- Created: 2023-12-03T02:03:36.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-01-02T00:11:57.000Z (over 1 year ago)
- Last Synced: 2025-01-17T08:45:44.140Z (3 months ago)
- Topics: coding-challenges, go, golang, linux-tool, wc-tool
- Language: Go
- Homepage: https://github.com/Leonardpepa/wc-tool
- Size: 148 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# wc tool clone
## Purpose
This project is a solution for [Build your own wc tool](https://codingchallenges.fyi/challenges/challenge-wc)
build for my personal educational purposes## Description
wc is a command line tool, read the [original specification](https://www.gnu.org/software/coreutils/manual/html_node/wc-invocation.html#wc-invocation) for more## Features
* Implemented
```terminal
-l, --lines Number of lines
-w, --words Number of words
-c, --bytes Nymber of bytes
-m, --chars Number of characters
-h, --help Usage
```
* Not implemented
```terminal
--files0-from=file
--total=when
--max-line-length
```
## Usage
```temrinal
Usage: ./wc-tool [OPTIONS]... [FILE]...
If no [OPTIONS] specified then -l, -w, -c = true
If no [FILE] specified then input = stdin
[OPTIONS]:
-l, --lines Number of lines
-w, --words Number of words
-c, --bytes Nymber of bytes
-m, --chars Number of characters
-h, --help Usage
```
## How to run
1. Clone the repo ```git clone https://github.com/Leonardpepa/wc-tool```
2. Build ```go build```
3. run on windows```wc-tool.exe [OPTIONS] [FILE]```
4. run on linux ```./wc-tool [OPTIONS] [FILE]```
5. run tests ```go test```