Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Do In C++ Design and implement C/C++ program (myshell.c or myshell.cpp, and its executable named myshell) to process command (to tokenize and parse the command,

Do In C++image text in transcribed

Design and implement C/C++ program (myshell.c or myshell.cpp, and its executable named myshell) to process command (to tokenize and parse the command, and print its components correctly). Your C/C++ program starts and runs in a loop (to input a line of command at a time, to parse it, and to output the parsed tokens, and back to a loop). For each input, your program should be able to parse each command from user (to process one command after the other in a loop) and print the result of the parsing, until the user's input is "exit" to terminate the program. Examples (You may create your own output format or template to show the command(s) being parsed.) Run your program for each of the following examples, to show that it is working correctly. One command with arguments and options. For example (for the input), Is-la /cs3376 Your program should output: Command: ls Options: -la Arguments: /cs3376 One command with lO redirection symbol ( , > >) For example, Is output.txt Command: Is File Redirection: File: output.txt # Two commands with pipe. For example, Is | wc should be parsed and display Command: Is Pipe Command: wc

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Intelligent Information And Database Systems 6th Asian Conference Aciids 2014 Bangkok Thailand April 7 9 2014 Proceedings Part I 9 2014 Proceedings Part 1 Lnai 8397

Authors: Ngoc-Thanh Nguyen ,Boonwat Attachoo ,Bogdan Trawinski ,Kulwadee Somboonviwat

2014th Edition

3319054759, 978-3319054759

More Books

Students also viewed these Databases questions

Question

LO3 Name the seven categories of HR functions.

Answered: 1 week ago