If you want to prepend your copyright header from a given file to a specific file type, use the following voodoo 🙂
$ find -type f -name '*.cpp' -exec sh -c "cat contrib/GPLHeader > {}.out ; cat {} >> {}.out ; rm {} ; mv {}.out {}" ;
If you want to prepend your copyright header from a given file to a specific file type, use the following voodoo 🙂
$ find -type f -name '*.cpp' -exec sh -c "cat contrib/GPLHeader > {}.out ; cat {} >> {}.out ; rm {} ; mv {}.out {}" ;