Skip to content
balagrivinePublic

About

wc command line tool

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

32 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

wc-cli

wc command line tool

Supported Flags

  • -b --byte - Print byte count
  • -w --word - Print word count
  • -l --line - Print newline count

Usage

To read from a file use

wc-cli <flag> <filename...>

To read from the standard input use

cat <filename> | wc-cli <flag>

Basic Commands

1. Printing number of lines in a file

wc-cli -l <filename(s)>

You can pass input from stdin

cat <filename> | wc-cli

2. Printting number of bytes in a file

wc-cli -m <filename(s)>

3. Printing number of words in a file

wc-cli -w <filename(s)>

Improvements

  1. Have more robust testing strategies, to test reading input from the standard input

About

wc command line tool

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages