parthnan / Shell-With-n-Pipe-in-C

Built a shell using C system libraries. Its Specialty is the implementation of n-length pipes of commands, in an easy-to-understand way. Supported Commands are listed in Readme.md

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Built a shell using C system libraries. Its Specialty is the implementation of n-length pipes of commands, in an easy-to-understand way. Supported Commands are listed in Readme.md


Languages

Language:C 100.0%