Giter Site home page Giter Site logo

wspipe's Introduction

wspipe

2024-1 Operating Systems (ITP30002) - HW #2

A homework assignment to implement pipe-based word search program, just like the grep command in Linux, but simpler using C language.

Author

Hyunseo Lee (22100600) [email protected]

1. How to build

This program is written in C language on Ubuntu 22.04.1 LTS. To build this program, you need to use Ubuntu 22.04.1 LTS with GCC and Make installed.

After unarchiving the folder, you should see the following files:

$ ls
Makefile  README.md  wspipe.c

To build the program, run the following command in the terminal:

$ make

To build the program with debug mode, run the following command in the terminal:

$ make debug

To cleanup the build files, run the following command in the terminal:

$ make clean

2. Usage

To run the program, run the following command in the terminal:

$ /wspipe <Command> <Keyword>

Command: Command to execute with arguments (wrap with single (or double) quotes if contains whitespace or any escape character)

Keyword: Keyword to search (wrap with single (or double) quotes if contains whitespace or any escape character)

You can also see the usage explained above by running the following command in the terminal:

$ ./wspipe -h

wspipe's People

Contributors

iamhslee avatar

Watchers

 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.