Skip to content

Latest commit

 

History

History
18 lines (14 loc) · 705 Bytes

README.md

File metadata and controls

18 lines (14 loc) · 705 Bytes

Creative Interests

SET UP PROJECT

WORDCOUNT CLI

  • tested on mac
  • GET: local-url/cli/ccwc : runs a script to copy the project into your /usr/local/bin/ccwc directory
  • ccwc -c /path-to-file/file.txt: returns the size of a file in bytes
  • ccwc -l /path-to-file/file.txt: returns the number of lines of texts in a file
  • ccwc -w /path-to-file/file.txt: returns the number of words in a file
  • ccwc -m /path-to-file/file.txt: returns the number of characters in a file
  • ccwc /path-to-file/file.txt: returns the file size in bytes, number of lines, number of words and number of characters of a file