Skip to content

Ghurtchu/wc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build your own word counter

https://codingchallenges.substack.com/p/coding-challenge-1

Setting up and testing:

  • run: cd ~
  • clone the repo
  • run: cd wc

run the following commands for testing:

  • ./wc -c ~/input.txt
  • ./wc -m ~/input.txt
  • ./wc -w ~/input.txt
  • ./wc -l ~/input.txt
  • ./wc ~/input.txt
  • cat ${some_file_path} | ./wc -c
  • cat ${some_file_path} | ./wc -m
  • cat ${some_file_path} | ./wc -w
  • cat ${some_file_path} | ./wc -l

Example screenshot on my own machine:

My Image