+
Skip to content

ZiyanK/wc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WC-Tool

This is my own version of the Unix command line tool wc.

How to build

Run make build to build the executable file for the cli

How to run

Execute the binary with the given command and specify the file

# Outputs the number of bytes

> ./main bytes test.text
342190

# Outputs the number of lines

> ./main lc test.text
7145

# Outputs the number of words

> ./main wc test.text
58164

# Outputs the number of characters

> ./main cc test.txt
339292

# Output all values
> ./main all test.text
342190 7145 58164 339292

About

An implementation of the Unix command line tool wc

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载