Code Monkey home page Code Monkey logo

word-count's Introduction

word-count

Write a program that implements Unix command wc (word count) like functionality. Read the Linux man page for wc in case you don't know what it does.

Setup instructions

  • To build a binary of the program use the make build.
  • Install the word count program, using the make install command.
  • Tests can be run using the make test command.

Usage Instructions

The program can now be used in the terminal using the gowc command.

  • It takes -l - lines, -c- characters and the -w- words flags in any order.
  • If no flags are used counts of all line,word and char count will be displayed.
  • Piping to the program is also possible e.g cat README.md | gowc
  • You can also start the program and type in the terminal like so
    $ gowc
some randomtext here #press `CTRL + D` to exit.
       1       3      21 #result

word-count's People

Contributors

susarlanikhilesh avatar iamargus95 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.