- find . -name "*.h" -exec sh -c "if ! grep -q 'GNU Lesser General Public License' '{}'; then mv '{}' _tmp_ && cp copyinfo.c.h '{}' && cat _tmp_ >> '{}' && rm -rf _tmp_; fi" \\;
- #该片段来自于http://www.codesnippet.cn/detail/200520133462.html
来源: http://www.codesnippet.cn/detail/200520133462.html