Guest_imported
New member
- Jan 1, 1970
- 0
I want to search a file for certain text and delete certain text from a file. I know you can do it with grep somehow but I'm not sure how. Can someone help?
example 1: search for string "dog" in file animals, if it's there, do A, else do B
example 2: delete string "dog" from file animals, if it's successful, do C, else do D
Thanks in advance!
example 1: search for string "dog" in file animals, if it's there, do A, else do B
example 2: delete string "dog" from file animals, if it's successful, do C, else do D
Thanks in advance!