I require a shell script that will run under SSH using a client such as puTTY.
1) Copy a file or files from a designated dir and place in a single location or multiple locations.
Example: add a [url removed, login to view] file to the root of all virtual domains.
2) Add a string or multi line strings to multiple files & locations.
Example: update .htaccess across all virual domains. It can add text to empty files or append string(s) starting on a newline at end of current text.
3) Search for string(s) in multiple files and/or multiple dir and delete or replace. Example: update html on all pages in selected dir/sub directories
4)Select dir's/files to exclude from current operation