|
Hi I was wondering if anyone could help me with a program that does the following
1. Reads a file as either a here document or as input via a file handel on STDIN
2. Incorporates regular expressions to
A. Stop out all excess spaces, leaving a single space between each word.
B. Search for the pattern (space) I (space) Thats a capital I and a space on each side. Count all instances of this pattern, return thetotal number of instances, and print this output to a file called patterns.txt. supported by text similar to "The pattern _I_ was found x times."
C. Output all text enclosed in quotes into a separate (second) file called quotes.txt
D. Print the output to a separate (third) text file named out.txt
Thanks for any help. :)
|
|
|
|
|
|
|
|
|
|