I'd like to search through multiple text files in a single directory for a string ('monkey'), if the string exists, then either, depending on what's easiest:
- rename the matching string - e.g. change monkey monkey1 and save then file and carry on searching/processing
or
- Delete any file that has the matching string.
Have searched but can't seem to find anything straightforward.