#!/perl -i.bak while(<>) { print; if(eof) { print "\n"; print "##Copyright (C) 2012 by firstName lastName\n" ; } }