This will overwrite all the current files. Ensure you are able to restore the original copies, e.g. use source control, take a manual backup
For execution, do either of the following:
- Build and run with first arg being the root directory of your .cs files.
- Assign the baseDir variable your root directory.
Thanks to Alberto Monteiro for providing the pattern matching to achieve this.