Problem
1. Name the commands required to interactively replace printf( with fprintf(stderr,. How will you repeat the action globally?
2. How will you search for a pattern printf and then repeat the search in the opposite direction from that in which the original search was made?
3. Name the commands required to noninteractively replace all occurrences of cnt with count in
(i) the first 10 lines,
(ii) the current line,
(iii) all lines. How do you repeat the exercise in an interactive manner?