Skip to content
/ ccwc Public

Simple rust implementation of wc unix command

Notifications You must be signed in to change notification settings

jsadaa/ccwc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CCWC

Description

Important

WIP

This is a work in progress and is not yet ready for use (and may never be).

(Educational & Recreational) implementation of wc unix command in Rust

Usage

Important

Format support

For now, only text files are supported. The program will not work correctly with other file types.

cargo run -- [OPTIONS] [FILE]

or

cargo build

and then :

./target/debug/ccwc [OPTIONS] [FILE]

or install the binary in your path and use it as a regular command :

cp ./target/debug/ccwc /usr/local/bin
ccwc [OPTIONS] [FILE]

Options (for now)

  • -c : Print the byte counts
  • -m : Print the character counts
  • -l : Print the newline counts
  • -w : Print the word counts

Contribution

Any remarks or suggestions are very welcome, feel free to open an issue or a pull request.

About

Simple rust implementation of wc unix command

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages