I want to modify every file in a directory recursively.
I want to replace:
<?php
with
<?php
/**
*
* Copyright (C) MyCompany, Ltd. - All Rights Reserved
* Unauthorized copying of this file, via any medium is strictly prohibited
* Proprietary and Confidential
* Written by Justin E <justin@domain.tld>, March 2014
*
*/
What would be the best solution? I know some sed, but I am looking to keep the spacing and newlines as well so that it looks professional.