相关疑难解决方法(0)

如何使用sed替换源文件中的版权/许可证头?

我需要使用Apache License 2.0标头替换所有Java源文件中的LGPL许可证头,即此

/*
 * 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 it will be useful, …
Run Code Online (Sandbox Code Playgroud)

unix macos command-line licensing sed

8
推荐指数
2
解决办法
4697
查看次数

标签 统计

command-line ×1

licensing ×1

macos ×1

sed ×1

unix ×1