Giter VIP home page Giter VIP logo

swordx's Introduction

SwordX

Authors: Liscio Alessandro, Rocchetti Giacomo

This is a project for the Operating Systems exam at UNICAM (University of Camerino, Italy).

SwordX is a command line tool that will count occurencies of words contained in files specified by the user.

Installation

After cloning SwordX folder, go into it and, from command line:

  sudo make
  sudo make install

Now you should be able to run swordx command from anywhere in your filesystem. Make sure you run it as administrator (it avoids permissions problems).

Uninstall

To uninstall the program, go to SwordX directory and type:

  sudo make uninstall

Examples

swordx test.txt

Count occurrencies in test.txt and print the result in swordx.out.

swordx -m 7 -o output.txt -r TestDirectory/

Count occurrencies of words with at least 7 characters in all files contained in TestDirectory and its subdirectories, then prints the result in output.txt.

swordx -a -i ignoredwords.txt -r TestDirectory/ -l logfile.txt

Count occurrencies of words, which are not contained in ignoredwords.txt, in all files contained in TestDirectory and its subdirectories, prints the result in swordx.out and prints stats in logfile.txt (file name, counted words, ignored words and process time).

swordx's People

Contributors

rocche avatar alessandroliscio 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.