Find and Replace
What does Fine and Replace do?
The Fine and Replace directive will find the specific content within a file, and replace it with the content you want.
Note that this directive will replace all instances of the found content.
How do I use the Fine and Replace directive?
To use this directive, specify the file you wish to search, the content with which you want to search for within that file, and the replacement content.
Behaviour of the Fine and Replace directive
- The file you specify must be both readable and writable by the user executing the Prog command. If the user cannot access the file, the Prog command will abort and fail.
- The file must exist or the directive will fail. Proggy will not create the file if it is missing.
- If the file exists, but no instances of the text you are replacing is found, the directive will skip and your Prog command will continue running.
Example use cases for the Fine and Replace directive
- Making minor updates in configuration files