Answered step by step
Verified Expert Solution
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++
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: wcStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started