Very similar questions with in server_config step.
* remote.RemoteFile
* cp -> ln
* s/"#"/r"[\#\$]\s*$"