How can I use sed to replace copyright/license headers in my source files?
问题 I need to replace the LGPL license header in all of my Java source files with the Apache License 2.0 header, i.e. this /* * Copyright (c) 2012 Tyler Treat * * This file is part of Project Foo. * * Project Foo is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * Project Foo is distributed in the hope that