I have a directory (and subdirectories) containing PHP files that I want to package into a product. At the top of each file are my development comments wrapped in /* */
I would like to script recursively removing my development comments from the top of every file (recursively) and then inserting the contents of file “/tmp/mycopyrightnotice.txt”. (I don’t care about other comments in the files).
I suspect the removal command and insert commands are seperate…but can’t figure out how to tackle this. I thought about sed but can’t figure out how to insert the contents of a file….among other issues