Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/logan-bobo/wc-go
Implementation of the wc UNIX command line utility in Go.
https://github.com/logan-bobo/wc-go
go linux unix
Last synced: 6 days ago
JSON representation
Implementation of the wc UNIX command line utility in Go.
- Host: GitHub
- URL: https://github.com/logan-bobo/wc-go
- Owner: logan-bobo
- Created: 2023-10-08T19:44:44.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-05-28T18:22:38.000Z (9 months ago)
- Last Synced: 2024-06-21T19:55:09.756Z (8 months ago)
- Topics: go, linux, unix
- Language: Go
- Homepage:
- Size: 1.33 MB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# wc go
Implementation of the `wc` UNIX command line tool in Go.
```
The wc utility displays the number of lines, words, and bytes contained in
each input file, or standard input (if no file is specified) to the standard
output. A line is defined as a string of characters delimited by a ⟨newline⟩
character. Characters beyond the final ⟨newline⟩ character will not be included
in the line count.
```## Functionality
```
-c
Count the bytes in a file/stdin
-l
Count the number of lines in a file/stdin
-w
Count the number of words in a file/stdin
-m
Count the number or characters in a file/stdincall the binary with no flags to get the lines, words and bytes
```