Hundreds of source files, forgot the copyright statement…….

So your new super project is all ready to go live. Add the licence file, check the copyright. Oh wait, you mean you forgot to add the copyright statement to your eclipse template. Never fear, the linux command line to the rescue, no need for hours of cut and paste:
find . -name "*.java" -print | xargs sed -i '1s/^/\/* Copyright (c) 2013 The University of Manchester, UK. *\/\n/'

Don’t forget to replace Copyright (c) 2013 The University of Manchester, UK with your own statement.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>