codesInML / wctool

A mock wc tool used to get some details of a file like number of bytes, number of lines, number of words and number of characters in the file.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

WC-TOOL

To build run the command below

cargo build

Then get the details of a file like below

./target/debug/wctool filename.txt

or like this

cat filename.txt | ./target/debug/wctool

You can also pass optional arguments to get a particular detail. Possible arguments includes

  • -c (gets the number of bytes of a file)
  • -l (gets the number of lines in a file)
  • -w (gets the number of words in a file)
  • -m (gets the number of characters in a file)

This project was inspired by the standard wc cli tool.

About

A mock wc tool used to get some details of a file like number of bytes, number of lines, number of words and number of characters in the file.


Languages

Language:Rust 100.0%