I am looking for ideas.
I have a class.
I told the professor I wanted to use the Grep command for my Linux script assignment.
I was under the impression that GREP looked at file names. I did not realize it looks within text files for occurrences.
My original plan to use GREP for a search engine of file names is pretty much shot.
So, I am now finding myself looking for ideas of when you would use the grep command on a regular basis. If you could consolidate the typical uses of Grep, what would they be?
This is what I plan on doing.
I plan on using a loop with nested decision statement to perform some of the typical Grep functions.
Input box, "type the option number of what you want to do"
Do, while not x
If, Option 1: find occurances of the text string in the file.
If, Option 2: find occurances in multiple files
If, Option 3: .....
See, I am at a loss for ideas on what to do with grep. Can you give me ideas on what you use grep for on a regular basis?
Then, I have to consider the output of the data. (a list, comma delimited text, ???)
Can you help me lay out a plan for a loop using the grep command??