Computer Science, asked by harikasingh26, 6 months ago

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 suresh231177
0

Answer:

central processing unit is the wrong answer for answer follow me

Similar questions