Write a program that inputs a line of text from the user and then prints it out
ID: 3925961 • Letter: W
Question
Write a program that inputs a line of text from the user and then prints it out again with all instances of the letter "e" changed to '3'. So, for example, if a user enters "Here is a line" then the program should print "H3r3 is a lin3". Your program should use pipes and a child process to do work as follows: The process should start by creating a child. The parent should input a string from the user The parent should send that string to the child. The child should convert the string and send it back The parent should print the converted stringExplanation / Answer
Just used FART ("F ind A nd R eplace T ext" command line utility):
excellent little freeware for text replacement within a large set of files.
The setup files are on SourceForge.
Usage example:
will preview the replacements to do recursively in the files of this Perl distribution.
Only problem: the FART website icon isn't exactly tasteful, refined or elegant ;)
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.