Computer Science
Write a C/C++ program that performs the tasks described below.
If there is just 1 command-line argument and it is
-hw
you should simply print
hello world
and then exit(0).
The program should fork one process. Have the new process execve the
program named /bin/sed. Use dup2 (or dup) with a pipe to establish a way
for the original process to capture stdout from sed. The program will
accept command-line arguments that it passes along to sed via execve.
Any valid sed arguments may be used during testing. Sample executions
are given below.
Be sure to have this:
Answers
Answered by
0
Answer:
central processing unit is the wrong answer for answer follow me
Similar questions
Science,
2 months ago
Biology,
6 months ago
Social Sciences,
6 months ago
Political Science,
10 months ago
Math,
10 months ago