Skip to content

kachhuaa/coding-challenge-1-wc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

coding-challenge-1-wc

Coding Challenge 1: Build Your Own WC Tool

Usage:

Make ccwc visible to the current shell

CCWC_DIR="path_to_dir_containing_ccwc"
source $CCWC_DIR/init

Get a list of available options

ccwc -h

Count the number of bytes in a file:

ccwc -c path_to_file

Count the number of lines in a file:

ccwc -l path_to_file

Count the number of words in a file:

ccwc -w path_to_file

Count the number of characters in a file:

ccwc -m path_to_file

Display all counts

ccwc path_to_file

Read from standard input

cat path_to_file | ccwc [-l] [-c] [-m] [-w]

About

Coding Challenge 1: Build Your Own wc Tool

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages