Code Monkey home page Code Monkey logo

shell-with-n-pipe-in-c's Introduction

Shell-Using-C

Built a basic shell using C, with added functionalities(script support, pipes of any length etc.).

Usage

Download onlineshell.c file, compile with gcc on a unix based terminal and run the ".o" file.

Features

Supported Commands/Features are listed below, alongwith the test results on a Linux Terminal.

1. alias

alt text

2. dirs, pushd and popd

alt text

3. echo,ls with all options

alt text

4. History related commands: history,!,!!,!5,!-7 etc.

alt text

5. Inter-command logic : OR(||),AND(&&),AS WELL AS(;)

alt text

6. rmdir and mkdir alongwith -m and -p options

alt text

7. piping with any length of pipes. Example :

alt text

8. Freely changing prompts :

alt text

9. Running scripts. In the Example below, the file "shellfile" has a script of 3 lines(top part of image), which can be run

alt text

10. Supports Wildcard character "*" in all places! For example, in 「ls -l *.c」 etc. Another Example below :

alt text

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.