Design a program using ordinary pipes in which the parent process sends a message from a file named file.txt to a child process, and the child process removes the occurrences of all the special characters including &,@,#,%,*,? &,$,”, and ~ and replace them with space (’ ’). And send the modified version back to the parent process and the parent process writes the modified data to the file updated.txt. This will require using two pipes, one for sending the original message from the first to the second process, and the other for sending the modified message from the second back to the first process. Note: Use only read, write and open system calls. Use of Cin, cout, prinf, ofstream, ifstream etc. will result in zero marks.
-
Notifications
You must be signed in to change notification settings - Fork 0
Design a program using ordinary pipes in which the parent process sends a message from a file named file.txt to a child process, and the child process removes the occurrences of all the special characters including &,@,#,%,*,? &,$,”, and ~ and replace them with space (’ ’). And send the modified version back to the parent process.
License
abdullahsohailcs/open-read-write-linux-c
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Design a program using ordinary pipes in which the parent process sends a message from a file named file.txt to a child process, and the child process removes the occurrences of all the special characters including &,@,#,%,*,? &,$,”, and ~ and replace them with space (’ ’). And send the modified version back to the parent process.
Topics
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published