I want to write a script that will search files for a keyword.
It will search the text of a single file, or it will open file after file of a given directory with the option of including subfiles.
To get started I wonder if someone would give me an outline of the programming steps I need to take, something of an outline.
I know that somehow I need somehow to be able to specify not just a single file but whether the keyword is found or not to keep looking and list the files and path it is found in.
This is to help me find things in scripts on my own servers when I need to customize or otherwise move or adapt scripts and web pages and such things. A server side search tool that will later be scaled to also search and replace.
Thank you very much.