Question: Write a C program using Linux system calls that takes two strings as arguments from the command line. The program should create a new child
Write a C program using Linux system calls that takes two strings as arguments from the command line. The program should create a new child process, within which it reads characters one by one from the standard input until the end of the file is reached. It should then copy the read lines, starting from the second line, into a newly created file with a name specified as the first argument, replacing each letter with the symbol.
In the parent process, redirecting the standard output to the file specified as the second argument, the program should calculate and output, on separate lines, the lengths of the lines from the first file each time. the program should work in Putty
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
