I need to use it to so the program asks the user for the text file and then the string located in that file. Then the program will tell the user whether the string exists in the file.
Asked
Active
Viewed 120 times
2
-
So what's your problem? Asking the user is not what grep does, it looks like your homework assignment includes some shell programming. (Duplicate of this question asked a couple of minutes earlier? – wurtel Sep 22 '14 at 12:44
-
No, I mean I need to use grep in the program and the program asks the user what the string is. – Jas Sep 22 '14 at 12:47
-
yeah, so a duplicate of the other question. – wurtel Sep 22 '14 at 13:10