Write a program that inputs a line of text from the user and

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 string

Solution

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 ;)

 Write a program that inputs a line of text from the user and then prints it out again with all instances of the letter \

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site